Updates test case tags to reflect the correct issue IDs and removes outdated references. This ensures accurate test reporting and traceability.
41 lines
No EOL
1.2 KiB
TypeScript
41 lines
No EOL
1.2 KiB
TypeScript
// Imports here
|
|
import { ITestData } from 'framework/TestData';
|
|
import { VehicleDamage, ServiceLocation, VehicleLookupType } from 'safelite-playwright-core';
|
|
import { ITestCase } from '../../framework/Typedefs'
|
|
import { getNextWeekday } from 'safelite-playwright-core';
|
|
import { defaultTestData } from 'safelite-playwright-core';
|
|
|
|
// Replace selected when not offered (alert) Test Data
|
|
const repairOnlyData: Partial<ITestData> = {
|
|
...defaultTestData, // Start with all defaults
|
|
|
|
// Override specific fields with test-specific data
|
|
vehicleDetails: {
|
|
...defaultTestData.vehicleDetails!,
|
|
year: '2023',
|
|
make: 'Motor Home',
|
|
model: 'Motor Home',
|
|
style: 'motor home'
|
|
},
|
|
vehicleDamage: [
|
|
VehicleDamage.WindshieldCrack
|
|
],
|
|
appointmentDetails: {
|
|
serviceLocation: ServiceLocation.DropOff,
|
|
appointmentDate: getNextWeekday()
|
|
},
|
|
alertFlags: {
|
|
isRepairOnly: true
|
|
}
|
|
};
|
|
|
|
const repairOnlyTests: ITestCase[] = [];
|
|
|
|
const tc = {
|
|
name: `alert0004 Replace selected when not offered`,
|
|
tags: ['@Alert', '@RepairOnly', '@test_report', '@CASH-1187'],
|
|
testData: repairOnlyData
|
|
};
|
|
repairOnlyTests.push(tc);
|
|
|
|
export default repairOnlyTests; |