From b81ea144b8b43d7a0b0d4adaa4add8bbe2acde9a Mon Sep 17 00:00:00 2001 From: kpatel8hs4io <31411746+kpatel8hs4io@users.noreply.github.com> Date: Thu, 19 Feb 2026 12:01:07 -0500 Subject: [PATCH 1/2] Minor change for mobile first test --- playwright-tests/tests/CashReplaceMobileFirstModal.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/playwright-tests/tests/CashReplaceMobileFirstModal.ts b/playwright-tests/tests/CashReplaceMobileFirstModal.ts index 714d95d84..16ec6d0a2 100644 --- a/playwright-tests/tests/CashReplaceMobileFirstModal.ts +++ b/playwright-tests/tests/CashReplaceMobileFirstModal.ts @@ -1,5 +1,5 @@ //Imports here -import { ITestData } from 'framework/TestData' +import { ITestData, getDefaultExperimentsData } from 'framework/TestData' import { ServiceLocation, ServicePackage, PaymentType, PartQuestionType } from 'safelite-playwright-core'; import { ITestCase } from '../framework/Typedefs' import { VehicleLookupType } from 'safelite-playwright-core'; @@ -64,6 +64,12 @@ const cashReplaceMobileFirstModalData: Partial = { // Override payment details paymentDetails: { paymentType: PaymentType.PayAtService + }, + + // Experiments + experiments: { + ...getDefaultExperimentsData(), + isMobileFirst: true } } From e1b44af0fc0df27c8638a0a28d8586454ddd65da Mon Sep 17 00:00:00 2001 From: kpatel8hs4io <31411746+kpatel8hs4io@users.noreply.github.com> Date: Thu, 19 Feb 2026 12:23:49 -0500 Subject: [PATCH 2/2] adding on more change. --- playwright-tests/pages/BasePage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright-tests/pages/BasePage.ts b/playwright-tests/pages/BasePage.ts index 3ea0be374..07d254391 100644 --- a/playwright-tests/pages/BasePage.ts +++ b/playwright-tests/pages/BasePage.ts @@ -246,11 +246,12 @@ export class BasePage { async buildExperimentUrl(testData: Partial): Promise { - let experimentsURLExtension = "?cns=all&experiments="; + let experimentsURLExtension = ""; const { experiments } = testData; if (experiments !== undefined) { + experimentsURLExtension += "?cns=all&experiments=" experimentsURLExtension += experiments?.isMobileFirst ? "MobileFirstAppointment=MobileFirstAppt_V1=MobileFirstAppt_TEST=true" : "MobileFirstAppointment=MobileFirstAppt_V1=MobileFirstAppt_CONTROL=true";