0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-04-07 23:01:25 -05:00

chore(test): improve CI test stability (#7213)

This commit is contained in:
Charles Zhao 2025-04-01 12:08:37 +08:00 committed by GitHub
parent 726ce4eb78
commit 9c2317ff50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,13 +93,14 @@ describe('smoke testing for console admin account creation and sign-in', () => {
// Switch back to English
await switchToLanguage(page, 'English');
await expect(page).toMatchElement('html[lang=en][dir=ltr]');
});
it('can sign out of admin console', async () => {
await expect(page).toClick('div[class$=topbar] > div[class$=container]');
// Try awaiting for 500ms before clicking sign-out button
await waitFor(500);
// Try awaiting for 1000ms before clicking sign-out button
await waitFor(1000);
await expectNavigation(
expect(page).toClick(