adding more changes
This commit is contained in:
parent
4344c19a30
commit
c74a6a7d10
4 changed files with 4 additions and 4 deletions
|
|
@ -71,7 +71,7 @@ export class ServiceLocationPage extends BasePage {
|
||||||
this.vehicleProtectedYesButton = this.page.locator('label').filter({ hasText: 'Yes' }).locator('div');
|
this.vehicleProtectedYesButton = this.page.locator('label').filter({ hasText: 'Yes' }).locator('div');
|
||||||
this.vehicleProtectedNoButton = this.page.locator('label').filter({ hasText: 'No' }).locator('div');
|
this.vehicleProtectedNoButton = this.page.locator('label').filter({ hasText: 'No' }).locator('div');
|
||||||
this.saveAddressButton = this.page.getByRole('button', { name: 'Continue' })
|
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){
|
async selectLocation(appointmentDetails: IAppointmentDetails){
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ export class ServicePackagesPage extends BasePage {
|
||||||
this.closeButton = this.page. getByRole('dialog').locator('button').filter({ hasText: 'Close' });
|
this.closeButton = this.page. getByRole('dialog').locator('button').filter({ hasText: 'Close' });
|
||||||
this.promoCodeTextbox = this.page.getByLabel('Enter a promo code');
|
this.promoCodeTextbox = this.page.getByLabel('Enter a promo code');
|
||||||
this.applyPromoButton = this.page.getByRole('button', { name: 'Apply 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);
|
// this.validateURL(this.url);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -482,7 +482,7 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
||||||
// Schedule appointment
|
// Schedule appointment
|
||||||
await test.step('SchedulePage >> Select day and time', async () => {
|
await test.step('SchedulePage >> Select day and time', async () => {
|
||||||
let schedulePage = testCase.pages.schedulePage;
|
let schedulePage = testCase.pages.schedulePage;
|
||||||
customerDetails!.apptDate! = await schedulePage.scheduleFirstAppointment(appointmentDetails!.serviceLocation);
|
await schedulePage.scheduleFirstAppointment(customerDetails!);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Enter contact details
|
// Enter contact details
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ const cashReplaceDynamicRecalMobileData: Partial<ITestData> = {
|
||||||
// Use street address from current faker seed
|
// Use street address from current faker seed
|
||||||
street: getDefaultTestData().customerDetails!.address.street,
|
street: getDefaultTestData().customerDetails!.address.street,
|
||||||
city: 'Rosedale',
|
city: 'Rosedale',
|
||||||
state: 'Maryland',
|
state: 'MD',
|
||||||
postalCode: '21237',
|
postalCode: '21237',
|
||||||
country: 'United States'
|
country: 'United States'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue