Skip to content

Commit

Permalink
feat(tests): Drops unused field for setting password.
Browse files Browse the repository at this point in the history
We require digit input and do not have a custom validation.
  • Loading branch information
damencho committed Feb 17, 2025
1 parent ee66c1e commit 2451e05
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/pageobjects/SecurityDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,6 @@ export default class SecurityDialog extends BaseDialog {

await this.participant.driver.keys(password);
await this.participant.driver.$('button=Add').click();

let validationMessage;

// There are two cases here, validation is enabled and the field passwordEntry maybe there
// with validation failed, or maybe successfully hidden after setting the password
// So let's give it some time to act on any of the above
if (!await passwordEntry.isExisting()) {
// validation had failed on password field as it is still on the page
validationMessage = passwordEntry.getAttribute('validationMessage');
}

if (validationMessage) {
await this.participant.driver.keys([ Key.Escape ]);
expect(validationMessage).toBe('');
}
}

/**
Expand Down

0 comments on commit 2451e05

Please # to comment.