Skip to content

Commit 8b4cb24

Browse files
committed
fixup! feat: relocate lace files into v1 folder
1 parent 858bee0 commit 8b4cb24

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* global WebdriverIO */
2+
import CommonOnboardingElements from './commonOnboardingElements';
3+
import type { ChainablePromiseElement } from 'webdriverio';
4+
import { setInputFieldValue } from '../../utils/inputFieldUtils';
5+
6+
class ConfirmPasswordPage extends CommonOnboardingElements {
7+
private PASSWORD_INPUT = '[data-testid="wallet-setup-enter-password-input"]';
8+
private PASSWORD_ERROR = '[data-testid="wallet-setup-enter-password-input-error"]';
9+
10+
get passwordInput(): ChainablePromiseElement<WebdriverIO.Element> {
11+
return $(this.PASSWORD_INPUT);
12+
}
13+
14+
get passwordError(): ChainablePromiseElement<WebdriverIO.Element> {
15+
return $(this.PASSWORD_ERROR);
16+
}
17+
18+
async setPasswordInput(value: string): Promise<void> {
19+
await setInputFieldValue(await this.passwordInput, value);
20+
}
21+
22+
async clickConfirmButton(): Promise<void> {
23+
await this.nextButton.waitForClickable();
24+
await this.nextButton.click();
25+
}
26+
}
27+
28+
export default new ConfirmPasswordPage();

0 commit comments

Comments
 (0)