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);