42 lines
No EOL
1.2 KiB
TypeScript
42 lines
No EOL
1.2 KiB
TypeScript
// Imports here
|
|
import { ITestData } from 'framework/TestData';
|
|
import { VehicleDamage, ServiceLocation } from 'safelite-playwright-core';
|
|
import { ITestCase } from '../../framework/Typedefs'
|
|
import { getNextWeekday } from 'safelite-playwright-core';
|
|
import { defaultTestData } from 'safelite-playwright-core';
|
|
|
|
// Both repair and replace selected (alert) Test Data
|
|
const repairAndReplaceData: Partial<ITestData> = {
|
|
...defaultTestData, // Start with all defaults
|
|
|
|
// Override specific fields with test-specific data
|
|
vehicleDetails: {
|
|
...defaultTestData.vehicleDetails!,
|
|
year: '2020',
|
|
make: 'Acura',
|
|
model: 'ILX',
|
|
style: '4 door sedan'
|
|
},
|
|
vehicleDamage: [
|
|
VehicleDamage.WindshieldOneChip,
|
|
VehicleDamage.RearWindow
|
|
],
|
|
appointmentDetails: {
|
|
serviceLocation: ServiceLocation.DropOff,
|
|
appointmentDate: getNextWeekday()
|
|
},
|
|
alertFlags: {
|
|
isRepairReplace: true
|
|
}
|
|
};
|
|
|
|
const repairAndReplaceTests: ITestCase[] = [];
|
|
|
|
const tc = {
|
|
name: `alert0002 Both repair and replace selected`,
|
|
tags: ['@Alert', '@RepairReplace', '@test_report'],
|
|
testData: repairAndReplaceData
|
|
};
|
|
repairAndReplaceTests.push(tc);
|
|
|
|
export default repairAndReplaceTests; |