richie-education 2.25.0-b2.dev26 → 2.25.0-b2.dev27
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.
|
@@ -151,6 +151,11 @@ describe('<AbstractContractFrame />', () => {
|
|
|
151
151
|
await waitFor(() => {
|
|
152
152
|
expect(screen.getByRole('heading', { name: 'Verifying signature ...' })).toBeInTheDocument();
|
|
153
153
|
});
|
|
154
|
+
expect(
|
|
155
|
+
screen.getByText(
|
|
156
|
+
'We are waiting for the signature to be validated from our signature platform. It can take up to few minutes. Do not close this page.',
|
|
157
|
+
),
|
|
158
|
+
).toBeInTheDocument();
|
|
154
159
|
expect(screen.getByRole('status')).toBeInTheDocument();
|
|
155
160
|
|
|
156
161
|
checkSignatureDeferred.resolve({ isSigned: true });
|
|
@@ -207,6 +212,11 @@ describe('<AbstractContractFrame />', () => {
|
|
|
207
212
|
await waitFor(() => {
|
|
208
213
|
expect(screen.getByRole('heading', { name: 'Verifying signature ...' })).toBeInTheDocument();
|
|
209
214
|
});
|
|
215
|
+
expect(
|
|
216
|
+
screen.getByText(
|
|
217
|
+
'We are waiting for the signature to be validated from our signature platform. It can take up to few minutes. Do not close this page.',
|
|
218
|
+
),
|
|
219
|
+
).toBeInTheDocument();
|
|
210
220
|
expect(screen.getByRole('status')).toBeInTheDocument();
|
|
211
221
|
|
|
212
222
|
checkSignatureDeferred.reject(new HttpError(500, 'Interval server error'));
|
|
@@ -263,6 +273,11 @@ describe('<AbstractContractFrame />', () => {
|
|
|
263
273
|
await waitFor(() => {
|
|
264
274
|
expect(screen.getByRole('heading', { name: 'Verifying signature ...' })).toBeInTheDocument();
|
|
265
275
|
});
|
|
276
|
+
expect(
|
|
277
|
+
screen.getByText(
|
|
278
|
+
'We are waiting for the signature to be validated from our signature platform. It can take up to few minutes. Do not close this page.',
|
|
279
|
+
),
|
|
280
|
+
).toBeInTheDocument();
|
|
266
281
|
expect(screen.getByRole('status')).toBeInTheDocument();
|
|
267
282
|
|
|
268
283
|
checkSignatureDeferred.resolve({ isSigned: false });
|
|
@@ -50,6 +50,12 @@ export const messages = defineMessages({
|
|
|
50
50
|
description: 'Message displayed inside the contract signin modal when polling the order.',
|
|
51
51
|
id: 'components.DashboardItem.Order.ContractFrame.polling',
|
|
52
52
|
},
|
|
53
|
+
pollingDescription: {
|
|
54
|
+
defaultMessage:
|
|
55
|
+
'We are waiting for the signature to be validated from our signature platform. It can take up to few minutes. Do not close this page.',
|
|
56
|
+
description: 'Message displayed inside the contract signin modal when polling the order.',
|
|
57
|
+
id: 'components.DashboardItem.Order.ContractFrame.pollingDescription',
|
|
58
|
+
},
|
|
53
59
|
finishedCaption: {
|
|
54
60
|
defaultMessage: 'Congratulations!',
|
|
55
61
|
description: 'Title displayed inside the contract signin modal when the contract is signed.',
|
|
@@ -251,9 +257,14 @@ const ContractFrameContent = ({
|
|
|
251
257
|
)}
|
|
252
258
|
{step === ContractSteps.POLLING && (
|
|
253
259
|
<div className="ContractFrame__loading-container">
|
|
254
|
-
<
|
|
255
|
-
<
|
|
256
|
-
|
|
260
|
+
<div>
|
|
261
|
+
<h3 className="ContractFrame__caption">
|
|
262
|
+
<FormattedMessage {...messages.polling} />
|
|
263
|
+
</h3>
|
|
264
|
+
<p className="ContractFrame__content">
|
|
265
|
+
<FormattedMessage {...messages.pollingDescription} />
|
|
266
|
+
</p>
|
|
267
|
+
</div>
|
|
257
268
|
<Loader />
|
|
258
269
|
</div>
|
|
259
270
|
)}
|