Merge pull request #1058 from Safelite/feature/richardson/INSR-7777

Fix test
This commit is contained in:
brich1212safe 2026-02-10 16:48:23 -05:00 committed by GitHub
commit 2583c4f883
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,14 +160,14 @@ describe('schedule-page.vue', () => {
// Assert // Assert
expect(arePagePrerequisitesValid).toBeFalsy(); expect(arePagePrerequisitesValid).toBeFalsy();
}); });
test.skip('should return newShopTimeSlots when getAvailableDatesMethod is called', async () => { test('should return newShopTimeSlots when getAvailableDatesMethod is called', async () => {
// Arrange // Arrange
const { wrapper } = getShallowMountedComponent(); const { wrapper } = getShallowMountedComponent();
wrapper.vm.selectableDatesData = { wrapper.vm.selectableDatesData = {
days: [] days: []
}; };
const store = useMainStore(); const store = useMainStore();
store.getShopTimeSlots.mockImplementation(() => ({ store.getShopTimeSlots.mockImplementation(() => Promise.resolve({
data: { data: {
estimatedServiceMinutesMinimum: 90, estimatedServiceMinutesMinimum: 90,
estimatedServiceMinutesMaximum: 120, estimatedServiceMinutesMaximum: 120,
@ -212,14 +212,14 @@ describe('schedule-page.vue', () => {
estimatedServiceMinutesMaximum: 120 estimatedServiceMinutesMaximum: 120
}); });
}); });
test.skip('Should call API service in days of 15 or less when getAvailableDatesMethod is called with large date ranges', async () => { test('Should call API service in days of 15 or less when getAvailableDatesMethod is called with large date ranges', async () => {
// Arrange // Arrange
const { wrapper } = getShallowMountedComponent(); const { wrapper } = getShallowMountedComponent();
wrapper.vm.selectableDatesData = { wrapper.vm.selectableDatesData = {
days: [] days: []
}; };
const store = useMainStore(); const store = useMainStore();
store.getShopTimeSlots.mockImplementation(() => ({ store.getShopTimeSlots.mockImplementation(() => Promise.resolve({
data: { data: {
estimatedServiceMinutesMinimum: 90, estimatedServiceMinutesMinimum: 90,
estimatedServiceMinutesMaximum: 120, estimatedServiceMinutesMaximum: 120,
@ -233,7 +233,8 @@ describe('schedule-page.vue', () => {
'2023-01-01', '2023-01-01',
'2023-03-31', '2023-03-31',
'Inshop', 'Inshop',
'123' '123',
'43228'
); );
// Assert // Assert