richie-education 2.33.0 → 2.33.1-dev3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/components/AddressesManagement/AddressForm/index.spec.tsx +1 -1
- package/js/components/AddressesManagement/index.spec.tsx +1 -1
- package/js/components/ContractFrame/AbstractContractFrame.spec.tsx +2 -2
- package/js/components/SaleTunnel/AddressSelector/index.spec.tsx +2 -2
- package/js/components/SaleTunnel/index.full-process.spec.tsx +1 -1
- package/js/hooks/useCourseProductUnion/index.spec.tsx +1 -1
- package/js/pages/DashboardAddressesManagement/DashboardCreateAddress.spec.tsx +2 -2
- package/js/pages/DashboardCourses/index.spec.tsx +1 -1
- package/package.json +1 -1
|
@@ -177,7 +177,7 @@ describe('AddressesManagement', () => {
|
|
|
177
177
|
...address,
|
|
178
178
|
is_main: true,
|
|
179
179
|
});
|
|
180
|
-
},
|
|
180
|
+
}, 15000);
|
|
181
181
|
|
|
182
182
|
it('renders a form to edit an address when user selects an address to edit', async () => {
|
|
183
183
|
const address = AddressFactory().one();
|
|
@@ -169,7 +169,7 @@ describe('<AbstractContractFrame />', () => {
|
|
|
169
169
|
await user.click(button);
|
|
170
170
|
|
|
171
171
|
expect(mockOnClose).toHaveBeenCalledTimes(1);
|
|
172
|
-
});
|
|
172
|
+
}, 25000);
|
|
173
173
|
|
|
174
174
|
it('retrieves invitation link but fails during signature checking', async () => {
|
|
175
175
|
const user = userEvent.setup();
|
|
@@ -231,7 +231,7 @@ describe('<AbstractContractFrame />', () => {
|
|
|
231
231
|
await user.click(button);
|
|
232
232
|
|
|
233
233
|
expect(mockOnClose).toHaveBeenCalledTimes(1);
|
|
234
|
-
});
|
|
234
|
+
}, 25000);
|
|
235
235
|
|
|
236
236
|
it('retrieves invitation link but exceeds polling max attemps', async () => {
|
|
237
237
|
const user = userEvent.setup();
|
|
@@ -133,7 +133,7 @@ describe('AddressSelector', () => {
|
|
|
133
133
|
'Billing address' + getAddressLabel(address) + 'closearrow_drop_down',
|
|
134
134
|
);
|
|
135
135
|
});
|
|
136
|
-
});
|
|
136
|
+
}, 15000);
|
|
137
137
|
it('has an existing main billing address and choose another', async () => {
|
|
138
138
|
const address = AddressFactory({
|
|
139
139
|
is_main: true,
|
|
@@ -268,5 +268,5 @@ describe('AddressSelector', () => {
|
|
|
268
268
|
'Billing address' + getAddressLabel(newAddress) + 'closearrow_drop_down',
|
|
269
269
|
),
|
|
270
270
|
);
|
|
271
|
-
});
|
|
271
|
+
}, 15000);
|
|
272
272
|
});
|
|
@@ -381,5 +381,5 @@ describe('SaleTunnel', () => {
|
|
|
381
381
|
// This way we make sure the cache is updated.
|
|
382
382
|
await screen.findByText('Purchased');
|
|
383
383
|
expect(screen.queryByRole('button', { name: product.call_to_action })).not.toBeInTheDocument();
|
|
384
|
-
},
|
|
384
|
+
}, 15000);
|
|
385
385
|
});
|
|
@@ -82,7 +82,7 @@ describe('useCourseProductUnion', () => {
|
|
|
82
82
|
`${coursesUrl}?has_listed_course_runs=true&page=1&page_size=${PER_PAGE}`,
|
|
83
83
|
);
|
|
84
84
|
expect(calledUrls).toContain(`${courseProductRelationsUrl}?page=1&page_size=${PER_PAGE}`);
|
|
85
|
-
});
|
|
85
|
+
}, 25000);
|
|
86
86
|
|
|
87
87
|
it('should call organization courses and organization coursesProductRelation endpoints', async () => {
|
|
88
88
|
const organizationId = 'DUMMY_ORGANIZATION_ID';
|
|
@@ -170,7 +170,7 @@ describe('<DashboardCreateAddress/>', () => {
|
|
|
170
170
|
await waitFor(() => {
|
|
171
171
|
expect(screen.getByText('Billing addresses')).toBeInTheDocument();
|
|
172
172
|
});
|
|
173
|
-
});
|
|
173
|
+
}, 15000);
|
|
174
174
|
|
|
175
175
|
it('shows an error in case of API error', async () => {
|
|
176
176
|
fetchMock.get('https://joanie.endpoint/api/v1.0/addresses/', []);
|
|
@@ -210,5 +210,5 @@ describe('<DashboardCreateAddress/>', () => {
|
|
|
210
210
|
).toBe(true);
|
|
211
211
|
|
|
212
212
|
await expectBannerError('An error occurred while creating the address. Please retry later.');
|
|
213
|
-
});
|
|
213
|
+
}, 15000);
|
|
214
214
|
});
|
|
@@ -231,7 +231,7 @@ describe('<DashboardCourses/>', () => {
|
|
|
231
231
|
await waitFor(() => expectList(entities.slice(0, perPage * 3), relations), { timeout: 30000 });
|
|
232
232
|
loadMoreButton = await screen.findByRole('button', { name: 'Load more' });
|
|
233
233
|
expect(loadMoreButton).toBeEnabled();
|
|
234
|
-
});
|
|
234
|
+
}, 15000);
|
|
235
235
|
|
|
236
236
|
it('shows an error', async () => {
|
|
237
237
|
jest.spyOn(console, 'error').mockImplementation(noop);
|