DigitalConsumer.FixMyGlass/playwright-tests/tests/alert-validation/alert0004_RepairOnly.ts
maguire-arman e4b2433816 Updates test case tags for issue tracking
Moves the CASH-836 tag from the HeavyTruck test to the RepairOnly test.

This change ensures that the correct test case is associated with the corresponding issue in the issue tracking system.
2025-07-10 09:40:21 -04:00

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-836'],
testData: repairOnlyData
};
repairOnlyTests.push(tc);
export default repairOnlyTests;