Merge pull request #3069 from Safelite/feature/CASH-1252
Minor change for mobile first test
This commit is contained in:
commit
139714a996
2 changed files with 9 additions and 2 deletions
|
|
@ -246,11 +246,12 @@ export class BasePage {
|
|||
|
||||
async buildExperimentUrl(testData: Partial<ITestData>): Promise<string> {
|
||||
|
||||
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";
|
||||
|
|
|
|||
|
|
@ -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<ITestData> = {
|
|||
// Override payment details
|
||||
paymentDetails: {
|
||||
paymentType: PaymentType.PayAtService
|
||||
},
|
||||
|
||||
// Experiments
|
||||
experiments: {
|
||||
...getDefaultExperimentsData(),
|
||||
isMobileFirst: true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue