File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ test.describe('Categories Navigation', () => {
12
12
13
13
// Click a category and verify navigation
14
14
await page . getByRole ( 'link' , { name : 'Clothing' } ) . click ( ) ;
15
- await expect ( page ) . toHaveURL ( ' http:/ /localhost:3000/kategori/clothing' ) ;
15
+ await expect ( page ) . toHaveURL ( / ^ h t t p : \/ \ /l o c a l h o s t : 3 0 0 0 \ /k a t e g o r i \ /c l o t h i n g / ) ;
16
16
17
17
// Go back to categories
18
18
await page . getByRole ( 'link' , { name : 'Kategorier' } ) . click ( ) ;
19
19
await expect ( page ) . toHaveURL ( 'http://localhost:3000/kategorier' ) ;
20
20
21
21
// Try another category
22
22
await page . getByRole ( 'link' , { name : 'Tshirts' } ) . click ( ) ;
23
- await expect ( page ) . toHaveURL ( ' http:/ /localhost:3000/kategori/tshirts' ) ;
23
+ await expect ( page ) . toHaveURL ( / ^ h t t p : \/ \ /l o c a l h o s t : 3 0 0 0 \ /k a t e g o r i \ /t s h i r t s / ) ;
24
24
} ) ;
25
25
26
26
test ( 'should navigate between categories and home' , async ( { page } ) => {
You can’t perform that action at this time.
0 commit comments