richie-education 2.25.0-b2.dev172 → 2.25.0-b2.dev173
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.
|
@@ -181,7 +181,7 @@ describe('PurchaseButton', () => {
|
|
|
181
181
|
expect(button).toBeDisabled();
|
|
182
182
|
|
|
183
183
|
// Further, a message is displayed to explain why the CTA is disabled
|
|
184
|
-
screen.findByText('
|
|
184
|
+
await screen.findByText('There are no more places available for this product.');
|
|
185
185
|
});
|
|
186
186
|
|
|
187
187
|
it.each([
|
|
@@ -318,7 +318,7 @@ describe('PurchaseButton', () => {
|
|
|
318
318
|
// No alert message
|
|
319
319
|
expect(
|
|
320
320
|
screen.queryByText(
|
|
321
|
-
'The course run is not active
|
|
321
|
+
'The course run is not active. This product is not currently available for sale.',
|
|
322
322
|
),
|
|
323
323
|
).not.toBeInTheDocument();
|
|
324
324
|
},
|
|
@@ -349,8 +349,8 @@ describe('PurchaseButton', () => {
|
|
|
349
349
|
expect(button).toBeDisabled();
|
|
350
350
|
|
|
351
351
|
// Further, a message is displayed to explain why the CTA is disabled
|
|
352
|
-
screen.findByText(
|
|
353
|
-
'At least one course has no course runs
|
|
352
|
+
await screen.findByText(
|
|
353
|
+
'At least one course has no course runs. This product is not currently available for sale.',
|
|
354
354
|
);
|
|
355
355
|
});
|
|
356
356
|
|