adding more changes

This commit is contained in:
kpatel8hs4io 2025-04-21 17:13:15 -04:00
parent 4344c19a30
commit c74a6a7d10
4 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ export class ServiceLocationPage extends BasePage {
this.vehicleProtectedYesButton = this.page.locator('label').filter({ hasText: 'Yes' }).locator('div');
this.vehicleProtectedNoButton = this.page.locator('label').filter({ hasText: 'No' }).locator('div');
this.saveAddressButton = this.page.getByRole('button', { name: 'Continue' })
this.repeatedClicksModalCloseButton = this.page.getByRole('img').nth(1);
this.repeatedClicksModalCloseButton = this.page.locator('.QSISlider').locator('img[src*=\'close\']');
}
async selectLocation(appointmentDetails: IAppointmentDetails){

View file

@ -41,7 +41,7 @@ export class ServicePackagesPage extends BasePage {
this.closeButton = this.page. getByRole('dialog').locator('button').filter({ hasText: 'Close' });
this.promoCodeTextbox = this.page.getByLabel('Enter a promo code');
this.applyPromoButton = this.page.getByRole('button', { name: 'Apply promo code' });
this.repeatedClicksModalCloseButton = this.page.getByRole('img').nth(1);
this.repeatedClicksModalCloseButton = this.page.locator('.QSISlider').locator('img[src*=\'close\']');
// this.validateURL(this.url);
}

View file

@ -482,7 +482,7 @@ async function runWorkflow(page: Page, testCase: TestCase) {
// Schedule appointment
await test.step('SchedulePage >> Select day and time', async () => {
let schedulePage = testCase.pages.schedulePage;
customerDetails!.apptDate! = await schedulePage.scheduleFirstAppointment(appointmentDetails!.serviceLocation);
await schedulePage.scheduleFirstAppointment(customerDetails!);
});
// Enter contact details

View file

@ -39,7 +39,7 @@ const cashReplaceDynamicRecalMobileData: Partial<ITestData> = {
// Use street address from current faker seed
street: getDefaultTestData().customerDetails!.address.street,
city: 'Rosedale',
state: 'Maryland',
state: 'MD',
postalCode: '21237',
country: 'United States'
},