From a01c162b5ef80185677b3adfebf890bb31481de6 Mon Sep 17 00:00:00 2001 From: Darius Jahandarie Date: Wed, 1 Jan 2025 16:11:17 +0900 Subject: [PATCH] Fix flaky Anki playwright test (#1735) fix flaky anki playwright test --- test/playwright/integration.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/playwright/integration.spec.js b/test/playwright/integration.spec.js index ca4ef694d..f622b103f 100644 --- a/test/playwright/integration.spec.js +++ b/test/playwright/integration.spec.js @@ -66,6 +66,8 @@ test('anki add', async ({context, page, extensionId}) => { // Open settings await page.goto(`chrome-extension://${extensionId}/settings.html`); + await expect(page.locator('id=dictionaries')).toBeVisible(); + // Load in test dictionary const dictionary = await createDictionaryArchiveData(path.join(root, 'test/data/dictionaries/valid-dictionary1'), 'valid-dictionary1'); await page.locator('input[id="dictionary-import-file-input"]').setInputFiles({