Browse Source

fix(playwright): add { waitUntil:'load' } in reload

pull/5903/head
Wing-Kam Wong 2 years ago
parent
commit
3ec39fa8e9
  1. 2
      tests/playwright/tests/db/users&Accounts/accountUserManagement.spec.ts
  2. 4
      tests/playwright/tests/db/users&Accounts/accountUserSettings.spec.ts

2
tests/playwright/tests/db/users&Accounts/accountUserManagement.spec.ts

@ -41,7 +41,7 @@ test.describe('User roles', () => {
}); });
await accountUsersPage.closeInvite(); await accountUsersPage.closeInvite();
await signupAndVerify(i); await signupAndVerify(i);
await accountPage.rootPage.reload(); await accountPage.rootPage.reload({ waitUntil: 'load' });
await accountUsersPage.goto(); await accountUsersPage.goto();
} }

4
tests/playwright/tests/db/users&Accounts/accountUserSettings.spec.ts

@ -23,7 +23,7 @@ test.describe('App settings', () => {
await accountSettingsPage.goto(); await accountSettingsPage.goto();
// todo: remove after route navigation issue resolved // todo: remove after route navigation issue resolved
await accountSettingsPage.rootPage.reload(); await accountSettingsPage.rootPage.reload({ waitUntil: 'load' });
// enable invite only signup // enable invite only signup
if (!(await accountSettingsPage.getInviteOnlyCheckboxValue())) { if (!(await accountSettingsPage.getInviteOnlyCheckboxValue())) {
@ -42,7 +42,7 @@ test.describe('App settings', () => {
expectedError: 'Not allowed to signup, contact super admin.', expectedError: 'Not allowed to signup, contact super admin.',
}); });
await signupPage.rootPage.reload(); await signupPage.rootPage.reload({ waitUntil: 'load' });
await accountSettingsPage.goto(); await accountSettingsPage.goto();

Loading…
Cancel
Save