From 2c849db83138e6247a7dce33a6f3e6604b9dce9b Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Sat, 24 Dec 2022 03:07:48 +0800 Subject: [PATCH] test: sleep 1s before each case to improve ui test stability --- packages/integration-tests/src/tests/ui/smoke.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/integration-tests/src/tests/ui/smoke.test.ts b/packages/integration-tests/src/tests/ui/smoke.test.ts index 85221cd66..c3e761153 100644 --- a/packages/integration-tests/src/tests/ui/smoke.test.ts +++ b/packages/integration-tests/src/tests/ui/smoke.test.ts @@ -5,7 +5,11 @@ describe('smoke testing', () => { const consoleUsername = 'admin'; const consolePassword = generatePassword(); - it('opens with app element and navigates to sign-in page', async () => { + beforeEach(async () => { + await page.waitForTimeout(1000); + }); + + it('opens with app element and navigates to welcome page', async () => { await page.goto(logtoUrl); await page.waitForNavigation({ waitUntil: 'networkidle0' });