From fe1dad0248d32b3cc7cd890851ba02244707b4f6 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 29 Nov 2021 14:45:03 +0100 Subject: [PATCH] Wait before top visible --- ui-tests/test/settings.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui-tests/test/settings.spec.ts b/ui-tests/test/settings.spec.ts index ff811b8e..6a12c2b1 100644 --- a/ui-tests/test/settings.spec.ts +++ b/ui-tests/test/settings.spec.ts @@ -17,14 +17,12 @@ test.describe('Settings', () => { await page.goto(`tree/${tmpPath}`); await page.menu.clickMenuItem(showHeaderPath); - await page.reload({ waitUntil: 'networkidle' }); - + await page.reload(); await page.menu.getMenuItem(showHeaderPath); expect(await page.screenshot()).toMatchSnapshot('top-hidden.png'); await page.menu.clickMenuItem(showHeaderPath); - await page.reload({ waitUntil: 'networkidle' }); - + await page.reload(); await page.menu.getMenuItem(showHeaderPath); expect(await page.screenshot()).toMatchSnapshot('top-visible.png'); });