From 02ff4a1bac14790edf092a2a4ec602edc897d469 Mon Sep 17 00:00:00 2001 From: damencho Date: Mon, 17 Feb 2025 09:02:05 -0600 Subject: [PATCH] feat(tests): Drops unused field for setting password. We require digit input and do not have a custom validation. --- tests/pageobjects/SecurityDialog.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tests/pageobjects/SecurityDialog.ts b/tests/pageobjects/SecurityDialog.ts index 8a348b82c4..a89eae2d53 100644 --- a/tests/pageobjects/SecurityDialog.ts +++ b/tests/pageobjects/SecurityDialog.ts @@ -1,5 +1,3 @@ -import { Key } from 'webdriverio'; - import BaseDialog from './BaseDialog'; const ADD_PASSWORD_LINK = 'add-password'; @@ -118,21 +116,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(''); - } } /**