mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-22 01:44:24 +01:00
Use await for editor toBeVisible()
This commit is contained in:
parent
89c01292a3
commit
54895f8d66
|
@ -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