Merge pull request #1058 from Safelite/feature/richardson/INSR-7777
Fix test
This commit is contained in:
commit
2583c4f883
1 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue