mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 02:36:10 +01:00
Use await for editor toBeVisible()
This commit is contained in:
parent
0c56ae07ad
commit
ea0003b08d
|
@ -26,7 +26,7 @@ test('Markdown image preview behaviour', async ({browser}, workerInfo) => {
|
|||
|
||||
// This yields the monaco editor
|
||||
const editor = page.getByRole('presentation').nth(0);
|
||||
expect(editor).toBeVisible();
|
||||
await expect(editor).toBeVisible();
|
||||
await editor.click();
|
||||
// Clear all the content
|
||||
await page.keyboard.press('ControlOrMeta+KeyA');
|
||||
|
|
Loading…
Reference in a new issue