File tree Expand file tree Collapse file tree
v1/packages/e2e-tests/src/elements/onboarding Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ( ) ;
You can’t perform that action at this time.
0 commit comments