Change flow to select no for sms opt in
This commit is contained in:
parent
d1d924c4f3
commit
bb56843114
1 changed files with 6 additions and 6 deletions
|
|
@ -35,7 +35,7 @@ export class PaymentMethodPage extends BasePage {
|
||||||
this.payAtAppointmentButton = this.page.locator('[buttonlabel="Pay at my appointment"]');
|
this.payAtAppointmentButton = this.page.locator('[buttonlabel="Pay at my appointment"]');
|
||||||
|
|
||||||
this.textReminderYesButton = this.page.locator('div.button-content', { hasText: /^yes$/i });
|
this.textReminderYesButton = this.page.locator('div.button-content', { hasText: /^yes$/i });
|
||||||
this.textReminderNoButton = this.page.locator('div.button-content', { hasText: 'No' });
|
this.textReminderNoButton = this.page.locator('div.button-content', { hasText: /^no$/i });
|
||||||
this.continueToCheckoutButton = this.page.getByRole('button', { name: 'Continue to checkout' });
|
this.continueToCheckoutButton = this.page.getByRole('button', { name: 'Continue to checkout' });
|
||||||
this.submitButton = this.page.getByRole('button', { name: 'Submit' });
|
this.submitButton = this.page.getByRole('button', { name: 'Submit' });
|
||||||
}
|
}
|
||||||
|
|
@ -46,20 +46,20 @@ export class PaymentMethodPage extends BasePage {
|
||||||
switch (paymentDetails.paymentType) {
|
switch (paymentDetails.paymentType) {
|
||||||
case PaymentType.Credit:
|
case PaymentType.Credit:
|
||||||
await this.payNowButton.click();
|
await this.payNowButton.click();
|
||||||
await this.textReminderYesButton.click();
|
await this.textReminderNoButton.click();
|
||||||
await this.continueToCheckoutButton.click();
|
await this.continueToCheckoutButton.click();
|
||||||
await this.selectCreditCard(paymentDetails);
|
await this.selectCreditCard(paymentDetails);
|
||||||
break;
|
break;
|
||||||
case PaymentType.Paypal:
|
case PaymentType.Paypal:
|
||||||
await this.payNowButton.click();
|
await this.payNowButton.click();
|
||||||
await this.textReminderYesButton.click();
|
await this.textReminderNoButton.click();
|
||||||
await this.continueToCheckoutButton.click();
|
await this.continueToCheckoutButton.click();
|
||||||
await this.selectPaypal();
|
await this.selectPaypal();
|
||||||
await this.paypalPage.completePaypalPurchase(paymentDetails);
|
await this.paypalPage.completePaypalPurchase(paymentDetails);
|
||||||
break;
|
break;
|
||||||
case PaymentType.AfterPay:
|
case PaymentType.AfterPay:
|
||||||
await this.payInFourButton.click();
|
await this.payInFourButton.click();
|
||||||
await this.textReminderYesButton.click();
|
await this.textReminderNoButton.click();
|
||||||
await this.continueToCheckoutButton.click();
|
await this.continueToCheckoutButton.click();
|
||||||
|
|
||||||
// Capture popup
|
// Capture popup
|
||||||
|
|
@ -72,7 +72,7 @@ export class PaymentMethodPage extends BasePage {
|
||||||
|
|
||||||
case PaymentType.PayAtService:
|
case PaymentType.PayAtService:
|
||||||
await this.payAtAppointmentButton.click();
|
await this.payAtAppointmentButton.click();
|
||||||
await this.textReminderYesButton.click();
|
await this.textReminderNoButton.click();
|
||||||
await this.submitButton.click();
|
await this.submitButton.click();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
@ -94,7 +94,7 @@ export class PaymentMethodPage extends BasePage {
|
||||||
}
|
}
|
||||||
|
|
||||||
async submitOrderWithoutPIA() {
|
async submitOrderWithoutPIA() {
|
||||||
await this.textReminderYesButton.click();
|
await this.textReminderNoButton.click();
|
||||||
await this.submitButton.click();
|
await this.submitButton.click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue