diff --git a/test/integration.spec.ts b/test/integration.spec.ts index 0b5bf4e..ce5c250 100644 --- a/test/integration.spec.ts +++ b/test/integration.spec.ts @@ -6,7 +6,7 @@ test('should navigate to the react page', async ({ page }) => { // Find an element with the text 'About Page' and click on it await page.click('text=React') // The new url should be "/project/facebook-react/" (baseURL is used there) - await expect(page).toHaveURL('/project/facebook-react/') + await expect(page).toHaveURL('/project/facebook-react-foo/') // The new page should contain an h3 with "You can deploy..." await expect(page.locator('.project')).toContainText('Home') }) @@ -17,4 +17,4 @@ test('should have stats', async ({ page }) => { // The new page should contain stats, there should be more than 100k starts for react const numberOfStars = await page.innerText('.stats-details:first-of-type div p') expect(Number(numberOfStars)).toBeGreaterThan(100000); -}) \ No newline at end of file +})