From d44caa9ad26d6f24175b8dab3c6dc6e0dcfd6fb6 Mon Sep 17 00:00:00 2001 From: Olivier Lamothe Date: Tue, 9 Jul 2024 09:41:19 -0400 Subject: [PATCH] wait for network idle --- .../e2e/atomic-commerce-search-box.e2e.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts b/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts index 490588fc160..bfb3a836f49 100644 --- a/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts +++ b/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts @@ -203,13 +203,14 @@ test.describe('with instant results & query suggestions', () => { }); test.describe('with recent queries', () => { - test.beforeEach(async ({searchBox}) => { + test.beforeEach(async ({searchBox, page}) => { await searchBox.searchInput.waitFor({state: 'visible'}); await searchBox.searchInput.click(); await searchBox.searchInput.fill('kayak'); await searchBox.searchInput.press('Enter'); await searchBox.clearButton.waitFor({state: 'visible'}); await searchBox.searchInput.fill(''); + await page.waitForLoadState('networkidle'); }); test('should display recent queries', async ({searchBox}) => {