Update e2e
This commit is contained in:
parent
1fb2418e57
commit
29e27fff35
|
@ -1,5 +1,7 @@
|
|||
# Unreleased
|
||||
|
||||
- Update test for payment task. #32467
|
||||
|
||||
# 1.0.0
|
||||
|
||||
- Add returned type annotations and remove unused vars. #8020
|
||||
|
|
|
@ -25,6 +25,10 @@ export class PaymentsSetup extends BasePage {
|
|||
await this.clickButtonWithText( 'Got it' );
|
||||
}
|
||||
|
||||
async toggleOtherPaymentMethods(): Promise< void > {
|
||||
await this.clickButtonWithText( 'Other payment methods' );
|
||||
}
|
||||
|
||||
async goToPaymentMethodSetup(
|
||||
method: PaymentMethodWithSetupButton
|
||||
): Promise< void > {
|
||||
|
|
|
@ -67,6 +67,7 @@ const testAdminPaymentSetupTask = () => {
|
|||
await waitForTimeout( 1000 );
|
||||
await homeScreen.clickOnTaskList( 'Set up payments' );
|
||||
await paymentsSetup.isDisplayed();
|
||||
await paymentsSetup.toggleOtherPaymentMethods();
|
||||
await paymentsSetup.methodHasBeenSetup( 'bacs' );
|
||||
} );
|
||||
|
||||
|
@ -76,6 +77,8 @@ const testAdminPaymentSetupTask = () => {
|
|||
await homeScreen.isDisplayed();
|
||||
await waitForTimeout( 1000 );
|
||||
await homeScreen.clickOnTaskList( 'Set up payments' );
|
||||
await paymentsSetup.isDisplayed();
|
||||
await paymentsSetup.toggleOtherPaymentMethods();
|
||||
await paymentsSetup.enableCashOnDelivery();
|
||||
await homeScreen.navigate();
|
||||
await homeScreen.isDisplayed();
|
||||
|
|
Loading…
Reference in New Issue