Skip to content

Commit 00cbe70

Browse files
authored
chore: update test
Introduce a faulty test for illustration purposes.
1 parent 53e7fbb commit 00cbe70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ test('should navigate to the react page', async ({ page }) => {
66
// Find an element with the text 'About Page' and click on it
77
await page.click('text=React')
88
// The new url should be "/project/facebook-react/" (baseURL is used there)
9-
await expect(page).toHaveURL('/project/facebook-react/')
9+
await expect(page).toHaveURL('/project/facebook-react-foo/')
1010
// The new page should contain an h3 with "You can deploy..."
1111
await expect(page.locator('.project')).toContainText('Home')
1212
})
@@ -17,4 +17,4 @@ test('should have stats', async ({ page }) => {
1717
// The new page should contain stats, there should be more than 100k starts for react
1818
const numberOfStars = await page.innerText('.stats-details:first-of-type div p')
1919
expect(Number(numberOfStars)).toBeGreaterThan(100000);
20-
})
20+
})

0 commit comments

Comments
 (0)