Skip to content

Commit 845034f

Browse files
committed
Fixing broken tests
1 parent d743eda commit 845034f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cake-game/src/components/rules/Rules.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ test.use({ viewport: { width: 500, height: 500 } });
55

66
test('should work', async ({ mount }) => {
77
const component = await mount(<Rules />);
8-
await expect(component).toContainText('Classify the 10 provided images as quickly as you can.');
8+
await expect(component).toContainText('Classify the provided images as quickly as you can.');
99
});
1010

1111
test(`[Rules Component]: Should render step 1`, async ({ mount }) => {
1212
const component = await mount(<Rules />);
13-
await expect(component).toContainText('Classify the 10 provided images as quickly as you can.');
13+
await expect(component).toContainText('Classify the provided images as quickly as you can.');
1414
});
1515

1616
test(`[Rules Component]: Should render step 2`, async ({ mount }) => {
1717
const component = await mount(<Rules />);
18-
await expect(component).toContainText('Classify the 10 provided images as quickly as you can.');
18+
await expect(component).toContainText('Classify the provided images as quickly as you can.');
1919

2020
const rulesStepMessage = component.getByTestId('rules-step-message');
2121
const nextStepButton = component.getByTestId('next-step-button');
@@ -25,7 +25,7 @@ test(`[Rules Component]: Should render step 2`, async ({ mount }) => {
2525

2626
test(`[Rules Component]: Should render step 3 and restart button`, async ({ mount }) => {
2727
const component = await mount(<Rules />);
28-
await expect(component).toContainText('Classify the 10 provided images as quickly as you can.');
28+
await expect(component).toContainText('Classify the provided images as quickly as you can.');
2929

3030
// Step 2
3131
const rulesStepMessage = component.getByTestId('rules-step-message');
@@ -42,7 +42,7 @@ test(`[Rules Component]: Should render step 3 and restart button`, async ({ moun
4242

4343
test(`[Rules Component]: Should restart steps wizard`, async ({ mount }) => {
4444
const component = await mount(<Rules />);
45-
await expect(component).toContainText('Classify the 10 provided images as quickly as you can.');
45+
await expect(component).toContainText('Classify the provided images as quickly as you can.');
4646

4747
// Steps 2 and 3
4848
const rulesStepMessage = component.getByTestId('rules-step-message');
@@ -57,5 +57,5 @@ test(`[Rules Component]: Should restart steps wizard`, async ({ mount }) => {
5757
expect(restartButton).toBeHidden();
5858
expect(nextStepButton).toBeVisible();
5959

60-
await expect(component).toContainText('Classify the 10 provided images as quickly as you can.');
60+
await expect(component).toContainText('Classify the provided images as quickly as you can.');
6161
});

0 commit comments

Comments
 (0)