few minor changes for playwright tests
This commit is contained in:
parent
7bd75f0609
commit
59e2f275dc
2 changed files with 7 additions and 1 deletions
|
|
@ -123,6 +123,7 @@ export class SchedulePage extends BasePage {
|
||||||
const { appointmentDetails, customerDetails } = testData;
|
const { appointmentDetails, customerDetails } = testData;
|
||||||
// await this.page.waitForTimeout(1000);
|
// await this.page.waitForTimeout(1000);
|
||||||
await this.page.waitForSelector('.date-picker', { state: 'visible' });
|
await this.page.waitForSelector('.date-picker', { state: 'visible' });
|
||||||
|
await this.page.locator('#date-picker-fieldset .loader').filter({visible: true}).waitFor({ state: 'hidden' });
|
||||||
while (!(await this.firstAvailableDate.isVisible())) {
|
while (!(await this.firstAvailableDate.isVisible())) {
|
||||||
|
|
||||||
if (appointmentDetails?.appointmentTimeSlot === AppointmentTimeslot.EarlyBird) {
|
if (appointmentDetails?.appointmentTimeSlot === AppointmentTimeslot.EarlyBird) {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
//Imports here
|
//Imports here
|
||||||
import { ITestData } from 'framework/TestData'
|
import { ITestData } from 'framework/TestData'
|
||||||
import { ServiceLocation } from "safelite-playwright-core";
|
import { Flow, ServiceLocation } from "safelite-playwright-core";
|
||||||
import { DamageType, PartQuestionType, PaymentType } from 'safelite-playwright-core'
|
import { DamageType, PartQuestionType, PaymentType } from 'safelite-playwright-core'
|
||||||
import { ITestCase } from '../framework/Typedefs'
|
import { ITestCase } from '../framework/Typedefs'
|
||||||
import { getDefaultTestData, setFakerSeedFromTestName } from 'safelite-playwright-core';
|
import { getDefaultTestData, setFakerSeedFromTestName } from 'safelite-playwright-core';
|
||||||
|
import { PaymentMethod } from 'framework/localTypes/Enums';
|
||||||
|
|
||||||
// Set the seed for consistent data generation
|
// Set the seed for consistent data generation
|
||||||
setFakerSeedFromTestName("CashReplaceSwitchToInsuranceProgressiveNoComp");
|
setFakerSeedFromTestName("CashReplaceSwitchToInsuranceProgressiveNoComp");
|
||||||
|
|
@ -13,6 +14,10 @@ const cashReplaceSwitchToInsuranceProgressiveNoCompData: Partial<ITestData> = {
|
||||||
...getDefaultTestData(),
|
...getDefaultTestData(),
|
||||||
|
|
||||||
isCashInsuranceFlow: true,
|
isCashInsuranceFlow: true,
|
||||||
|
flow: Flow.Managed,
|
||||||
|
|
||||||
|
// CASH Client
|
||||||
|
paymentMethod: PaymentMethod.SelfPay,
|
||||||
|
|
||||||
// Override customer details based on provided ZIP code
|
// Override customer details based on provided ZIP code
|
||||||
customerDetails: {
|
customerDetails: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue