Skip to content

Commit 3d23839

Browse files
committed
Fi rege
1 parent 4b237e6 commit 3d23839

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/tests/Categories/Categories.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ test.describe('Categories Navigation', () => {
88
test('should navigate through category pages', async ({ page }) => {
99
// Navigate to categories page
1010
await page.getByRole('link', { name: 'Kategorier' }).click();
11-
await expect(page).toHaveURL(/.*\/kategorier/);
11+
await expect(page).toHaveURL('http://localhost:3000/kategorier');
1212

1313
// Click a category and verify navigation
1414
await page.getByRole('link', { name: 'Clothing' }).click();
15-
await expect(page).toHaveURL(/.*\/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();
19-
await expect(page).toHaveURL(/.*\/kategorier/);
19+
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(/.*\/kategori\/tshirts/);
23+
await expect(page).toHaveURL('http://localhost:3000/kategori/tshirts');
2424
});
2525

2626
test('should navigate between categories and home', async ({ page }) => {
2727
// Go to categories
2828
await page.getByRole('link', { name: 'Kategorier' }).click();
29-
await expect(page).toHaveURL(/.*\/kategorier/);
29+
await expect(page).toHaveURL('http://localhost:3000/kategorier');
3030

3131
// Go back home
3232
await page.getByRole('link', { name: 'NETTBUTIKK' }).click();

0 commit comments

Comments
 (0)