From 2c2d709691501e19afd12c33b2bb289dc675bb2b Mon Sep 17 00:00:00 2001 From: JennyNou Date: Wed, 25 Mar 2026 09:46:05 -0400 Subject: [PATCH] Add alternate mobile address method --- playwright-tests/business-logic/types/CustomerDetails.ts | 2 ++ playwright-tests/pages/ContactDetailsPage.ts | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/playwright-tests/business-logic/types/CustomerDetails.ts b/playwright-tests/business-logic/types/CustomerDetails.ts index 1152f7a4..9a4abd95 100644 --- a/playwright-tests/business-logic/types/CustomerDetails.ts +++ b/playwright-tests/business-logic/types/CustomerDetails.ts @@ -44,6 +44,8 @@ export interface IAppointmentDetails { serviceAddress?: IAddress, // Used for mobile isVehicleProtected?: boolean // Used for mobile alternateServiceZip?: string // Used for in-shop and drop-off if doing service in a different ZIP + alternateMobileCity?: string // Used for mobile if doing service in a different city then customers address + alternateMobileStreetAddress?: string // Used for mobile if doing service in a different street address then customers address } export interface IPartQuestion { diff --git a/playwright-tests/pages/ContactDetailsPage.ts b/playwright-tests/pages/ContactDetailsPage.ts index 2f030149..991cdff7 100644 --- a/playwright-tests/pages/ContactDetailsPage.ts +++ b/playwright-tests/pages/ContactDetailsPage.ts @@ -54,6 +54,11 @@ export class ContactDetailsPage extends BasePage { await this.cityTextBox.fill(customerDetails.address.city!); } + async fillAlternateMobileStreetAndCity(alternateMobileStreetAddress: string, alternateMobileCity: string) { + await this.streetAddressTextBox.fill(alternateMobileStreetAddress); + await this.cityTextBox.fill(alternateMobileCity); + } + async fillNotes(notes?: string) { if (notes) { await this.notesTextBox.fill(notes);