diff --git a/playwright-tests/pages/WelcomePage.ts b/playwright-tests/pages/WelcomePage.ts index db3657fe..caad74a2 100644 --- a/playwright-tests/pages/WelcomePage.ts +++ b/playwright-tests/pages/WelcomePage.ts @@ -16,7 +16,6 @@ export class WelcomePage extends BasePage { readonly emailAddress: Locator; readonly city: Locator; readonly state: Locator; - readonly lossCity: Locator; readonly cookieCloseButton: Locator; readonly GetStartedButton: Locator; readonly applicationPageHeader: Locator; @@ -37,7 +36,6 @@ export class WelcomePage extends BasePage { this.state = page.locator('select[name="\\38 fdf9dc2e13e430eb57529499dceb3eb"]'); this.cookieCloseButton = page.getByRole('button', { name: 'Close' }); this.GetStartedButton = page.getByRole('button', { name: 'Get Started' }); - this.lossCity = page.getByRole('textbox', { name: 'Loss city' }); this.applicationPageHeader = page.locator('.site-header-container'); } @@ -81,10 +79,6 @@ export class WelcomePage extends BasePage { return this.city.isVisible(); } - async hasLossLocationInfo() { - return this.lossCity.isVisible(); - } - async hasApplicationPageHeader(currentClientTag: string, accountNumber?: string) { const client = ClientData.resolveClientForTest(currentClientTag, accountNumber); diff --git a/playwright-tests/tests/0000__M.test.ts b/playwright-tests/tests/0000__M.test.ts index d2c1e1fa..175dbcb7 100644 --- a/playwright-tests/tests/0000__M.test.ts +++ b/playwright-tests/tests/0000__M.test.ts @@ -870,13 +870,7 @@ async function runWorkflow(page: Page, testCase: TestCase) { if (appointmentDetails?.serviceLocation === ServiceLocation.Mobile) { await test.step('ContactDetailsPage >> Validate contact details', async () => { await contactDetailsPage.validateURL(contactDetailsPage.issPageValue); - - - // await contactDetailsPage.fillContactDetails(customerDetails!); - // if (appointmentDetails?.alternateMobileCity) { - // await contactDetailsPage.fillAlternateMobileStreetAndCity(appointmentDetails?.alternateMobileStreetAddress!, appointmentDetails?.alternateMobileCity!); - //} - if (appointmentDetails?.serviceAddress) { + if (appointmentDetails?.serviceAddress) { await contactDetailsPage.fillMobileServiceAddress(appointmentDetails.serviceAddress); } else { await contactDetailsPage.fillContactDetails(customerDetails!);