File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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', () => {
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 ( / ^ 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 / ) ;
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 ( / ^ 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 / ) ;
2424 } ) ;
2525
2626 test ( 'should navigate between categories and home' , async ( { page } ) => {
You can’t perform that action at this time.
0 commit comments