DigitalConsumer.FixMyGlass/playwright-tests/tests/CashReplaceGlassLicensePlateLookupInshopPaypal.ts
maguire-arman a2ca9134d1 Initializes Playwright test framework
Sets up the core infrastructure for Playwright-based automated testing, including:
- Docker support for consistent environments
- Azure Pipelines configuration for CI/CD
- Page Object Model structure for maintainable tests
- Test data, validation, and rule engine implementation
- Test configuration for alerts and other scenarios
2025-05-08 15:45:05 -04:00

53 lines
No EOL
2 KiB
TypeScript

//Imports here
import { ITestData } from "@business-logic/types/ITestData"
import TestCase from "@business-logic/types/TestCase";
import { VehicleLookupType } from "@business-logic/types/Enums";
import PaymentData from "@business-logic/Data/PaymentData";
import { getDefaultTestData, setFakerSeedFromTestName } from "@business-logic/constants/DefaultTestData";
// Set the seed before generating any data
setFakerSeedFromTestName("CashReplaceGlassLicensePlateLookupInshopPaypal");
// Now get the test data with the seeded faker
const cashReplaceGlassLicensePlateLookupInshopPaypalData: Partial<ITestData> = {
...getDefaultTestData(), // Get default data with current seed
// Override customer details - using a different ZIP
customerDetails: {
...getDefaultTestData().customerDetails!,
address: {
street: '4076 Spectacle Dr',
city: 'Columbus',
state: 'Ohio',
postalCode: '44125',
country: 'United States'
}
},
// Override vehicle details with license plate lookup
vehicleDetails: {
...getDefaultTestData().vehicleDetails!,
year: '2013',
make: 'Hyundai',
model: 'Sonata',
style: '4 door sedan',
licensePlateNumber: 'FTY 7776',
vehicleLookupType: VehicleLookupType.LicensePlateNumber
},
// No need to override vehicleDamage as it already defaults to WindshieldCrack
// Override payment details to use PayPal
paymentDetails: PaymentData.getDefaultPaypalDetails()
}
const cashReplaceGlassLicensePlateLookupInshopPaypalTests: TestCase[] = [];
const tc = new TestCase({
name: `CashReplaceGlassLicensePlateLookupInshopPaypal`,
tags: ['@E2E','@CashReplaceGlassLicensePlateLookupInshopPaypal', '@test_report', '@CASH'],
testData: cashReplaceGlassLicensePlateLookupInshopPaypalData
}, undefined, 'CashReplaceGlassLicensePlateLookupInshopPaypal');
cashReplaceGlassLicensePlateLookupInshopPaypalTests.push(tc);
export default cashReplaceGlassLicensePlateLookupInshopPaypalTests;