File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- import { Page } from '@playwright/test' ;
1
+ import { expect , Page } from '@playwright/test' ;
2
2
3
3
export class MockUkBankAccountsPage {
4
4
page : Page ;
@@ -8,11 +8,13 @@ export class MockUkBankAccountsPage {
8
8
}
9
9
10
10
// Locators
11
+ currentAccount = ( ) => this . page . getByText ( 'Select account' ) ;
11
12
continueButton = ( ) => this . page . getByRole ( 'button' , { name : 'Continue' } ) ;
12
13
13
14
// Methods
14
15
async selectAccountAndContinue ( ) {
15
- await this . continueButton ( ) . isVisible ( { timeout :10000 } ) ;
16
+ await expect ( this . currentAccount ( ) ) . toBeVisible ( { timeout : 10000 } )
17
+ await this . continueButton ( ) . isVisible ( ) ;
16
18
await this . continueButton ( ) . click ( { force : true } ) ;
17
19
}
18
20
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export class PaymentConfirmationPage {
14
14
15
15
// Methods
16
16
async waitForProcessingAndContinue ( ) {
17
- await expect ( this . paymentProcessingText ( ) . or ( this . paymentConfirmedText ( ) ) ) . toBeVisible ( { timeout : 15000 } )
17
+ await expect ( this . paymentProcessingText ( ) . or ( this . paymentConfirmedText ( ) ) ) . toBeVisible ( { timeout : 20000 } )
18
18
await expect ( this . continueButton ( ) ) . toBeVisible ( ) ;
19
19
await this . continueButton ( ) . click ( ) ;
20
20
}
You can’t perform that action at this time.
0 commit comments