Skip to content

Commit ef341b1

Browse files
committed
Fix test
1 parent 3d23839 commit ef341b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/Categories/Categories.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ test.describe('Categories Navigation', () => {
1212

1313
// Click a category and verify navigation
1414
await page.getByRole('link', { name: 'Clothing' }).click();
15-
await expect(page).toHaveURL('http://localhost:3000/kategori/clothing');
15+
await expect(page).toHaveURL(/^http:\/\/localhost:3000\/kategori\/clothing/);
1616

1717
// Go back to categories
1818
await page.getByRole('link', { name: 'Kategorier' }).click();
1919
await expect(page).toHaveURL('http://localhost:3000/kategorier');
2020

2121
// Try another category
2222
await page.getByRole('link', { name: 'Tshirts' }).click();
23-
await expect(page).toHaveURL('http://localhost:3000/kategori/tshirts');
23+
await expect(page).toHaveURL(/^http:\/\/localhost:3000\/kategori\/tshirts/);
2424
});
2525

2626
test('should navigate between categories and home', async ({ page }) => {

0 commit comments

Comments
 (0)