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

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