From 6826dcf4caebbca41d90cd8ec4fa4ee62434f11b Mon Sep 17 00:00:00 2001 From: JennyNou Date: Tue, 12 May 2026 22:02:52 -0400 Subject: [PATCH] Update name for sms opt in checkbox --- playwright-tests/pages/BailoutPage.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/playwright-tests/pages/BailoutPage.ts b/playwright-tests/pages/BailoutPage.ts index 002464e9b..5d8c54428 100644 --- a/playwright-tests/pages/BailoutPage.ts +++ b/playwright-tests/pages/BailoutPage.ts @@ -10,7 +10,7 @@ export class BailoutPage extends BasePage { readonly lastNameTextBox: Locator; readonly emailAddressTextBox: Locator; readonly phoneNumberTextBox: Locator; - readonly textOptInBox: Locator; + readonly optInToSMSBox: Locator; constructor(page: Page) { super(page); @@ -20,7 +20,7 @@ export class BailoutPage extends BasePage { this.lastNameTextBox = this.page.getByRole('textbox', { name: 'Last name' }); this.emailAddressTextBox = this.page.getByRole('textbox', { name: 'Email address' }); this.phoneNumberTextBox = this.page.getByRole('textbox', { name: 'Phone number' }); - this.textOptInBox = this.page.getByRole('checkbox', { name: 'Opt in to SMS' }); + this.optInToSMSBox = this.page.getByRole('checkbox', { name: 'Opt in to SMS' }); } async fillOutBailoutForm(customerDetails: ICustomerDetails) { @@ -30,8 +30,8 @@ export class BailoutPage extends BasePage { await this.phoneNumberTextBox.fill(customerDetails!.phoneNumber!); } - async checkTextMeUpdates(customerDetails: ICustomerDetails) { - await this.textOptInBox.check(); + async checkOptInToSMSBox() { + await this.optInToSMSBox.check(); } @step("BailoutPage >> Fill out bailout form: ") @@ -43,7 +43,7 @@ export class BailoutPage extends BasePage { await this.fillOutBailoutForm(customerDetails!); if (testData.isOptedInForTextMessages) { - await this.checkTextMeUpdates(customerDetails!); + await this.checkOptInToSMSBox(); } await this.nextPage();