1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Chore: Testing: Make Rich Text Editor attachment test more reliable (#12085)

This commit is contained in:
Henry Heino
2025-04-12 04:12:34 -07:00
committed by GitHub
parent fd486e298a
commit 90f622b3e6

View File

@@ -62,6 +62,9 @@ test.describe('richTextEditor', () => {
await setFilePickerResponse(electronApp, [pathToAttach]);
await editor.attachFileButton.click();
// Wait for it to render
await expect(editor.getNoteViewerFrameLocator().getByText('test-file.txt')).toBeVisible();
// Switch to the RTE
await editor.toggleEditorsButton.click();
await editor.richTextEditor.waitFor();