43 lines
No EOL
1.2 KiB
TypeScript
43 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';
|
|
|
|
// Heavy Truck (alert) Test Data
|
|
const heavyTruckData: Partial<ITestData> = {
|
|
...defaultTestData, // Start with all defaults
|
|
|
|
// Override specific fields with test-specific data
|
|
vehicleDetails: {
|
|
...defaultTestData.vehicleDetails!,
|
|
year: '2017',
|
|
make: 'Freightliner',
|
|
model: '114sd',
|
|
style: 'conventional cab'
|
|
},
|
|
alertFlags: {
|
|
isHeavyTruckVehicle: true
|
|
},
|
|
vehicleDamage: [
|
|
VehicleDamage.WindshieldOneChip,
|
|
VehicleDamage.RearWindow
|
|
],
|
|
appointmentDetails: {
|
|
serviceLocation: ServiceLocation.DropOff,
|
|
appointmentDate: getNextWeekday()
|
|
}
|
|
};
|
|
|
|
const heavyTruckTests: ITestCase[] = [];
|
|
|
|
const tc: ITestCase = {
|
|
name: `alert0001 Heavy Truck`,
|
|
tags: ['@Alert', '@HeavyTruck', '@test_report'],
|
|
testData: heavyTruckData
|
|
};
|
|
|
|
heavyTruckTests.push(tc);
|
|
|
|
export default heavyTruckTests; |