0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

Merge pull request #2720 from logto-io/charles-improve-ui-test-stability

test: sleep 1s before each case to improve ui test stability
This commit is contained in:
Charles Zhao 2022-12-24 20:06:20 +08:00 committed by GitHub
commit 4734c7b2b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,11 @@ describe('smoke testing', () => {
const consoleUsername = 'admin'; const consoleUsername = 'admin';
const consolePassword = generatePassword(); 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.goto(logtoUrl);
await page.waitForNavigation({ waitUntil: 'networkidle0' }); await page.waitForNavigation({ waitUntil: 'networkidle0' });