0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

test: sleep 1s before each case to improve ui test stability

This commit is contained in:
Charles Zhao 2022-12-24 03:07:48 +08:00
parent c52a66a32d
commit 2c849db831
No known key found for this signature in database
GPG key ID: 4858774754C92DF2

View file

@ -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' });