mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
test: sleep 1s before each case to improve ui test stability
This commit is contained in:
parent
c52a66a32d
commit
2c849db831
1 changed files with 5 additions and 1 deletions
|
@ -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' });
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue