We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 009520e commit 9afa790Copy full SHA for 9afa790
tests/test-team/pages/templates-mgmt-login-page.ts
@@ -32,13 +32,19 @@ export class TemplateMgmtSignInPage extends TemplateMgmtBasePage {
32
33
await this.clickSubmitButton();
34
35
- await this.confirmPasswordInput.waitFor({
36
- state: 'visible',
37
- timeout: 1000,
38
- });
+ let shouldResetPassword = true;
+
+ try {
+ await this.confirmPasswordInput.waitFor({
39
+ state: 'visible',
40
+ timeout: 5000,
41
+ });
42
+ } catch {
43
+ shouldResetPassword = false;
44
+ }
45
46
// Note: because this is a new user, Cognito forces us to update the password.
- if (await this.confirmPasswordInput.isVisible()) {
47
+ if (shouldResetPassword) {
48
const password = CognitoAuthHelper.generatePassword();
49
50
await this.passwordInput.fill(password);
0 commit comments