Template
1
0
Fork 0
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:
Nirmal Kumar R 2024-11-20 20:55:19 +05:30
parent 89c01292a3
commit 54895f8d66

View file

@ -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');