From 59e2f275dc4190f86afdc4209310b8682dc99953 Mon Sep 17 00:00:00 2001 From: kpatel8hs4io <31411746+kpatel8hs4io@users.noreply.github.com> Date: Wed, 30 Jul 2025 11:14:38 -0400 Subject: [PATCH] few minor changes for playwright tests --- playwright-tests/pages/SchedulePage.ts | 1 + .../tests/CashReplaceSwitchToInsuranceProgressiveNoComp.ts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/playwright-tests/pages/SchedulePage.ts b/playwright-tests/pages/SchedulePage.ts index 1b2cc35de..d4d00b6f0 100644 --- a/playwright-tests/pages/SchedulePage.ts +++ b/playwright-tests/pages/SchedulePage.ts @@ -123,6 +123,7 @@ export class SchedulePage extends BasePage { const { appointmentDetails, customerDetails } = testData; // await this.page.waitForTimeout(1000); 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())) { if (appointmentDetails?.appointmentTimeSlot === AppointmentTimeslot.EarlyBird) { diff --git a/playwright-tests/tests/CashReplaceSwitchToInsuranceProgressiveNoComp.ts b/playwright-tests/tests/CashReplaceSwitchToInsuranceProgressiveNoComp.ts index a6494792a..91e997986 100644 --- a/playwright-tests/tests/CashReplaceSwitchToInsuranceProgressiveNoComp.ts +++ b/playwright-tests/tests/CashReplaceSwitchToInsuranceProgressiveNoComp.ts @@ -1,9 +1,10 @@ //Imports here 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 { ITestCase } from '../framework/Typedefs' import { getDefaultTestData, setFakerSeedFromTestName } from 'safelite-playwright-core'; +import { PaymentMethod } from 'framework/localTypes/Enums'; // Set the seed for consistent data generation setFakerSeedFromTestName("CashReplaceSwitchToInsuranceProgressiveNoComp"); @@ -13,6 +14,10 @@ const cashReplaceSwitchToInsuranceProgressiveNoCompData: Partial = { ...getDefaultTestData(), isCashInsuranceFlow: true, + flow: Flow.Managed, + + // CASH Client + paymentMethod: PaymentMethod.SelfPay, // Override customer details based on provided ZIP code customerDetails: {