@@ -18,7 +18,7 @@ test.describe('basic test', async () => {
1818 } ) ;
1919
2020 test ( 'all links should be normalized' , async ( { page } ) => {
21- await page . goto ( `http://localhost:${ appPort } /guide` ) ;
21+ await page . goto ( `http://localhost:${ appPort } /base/ guide` ) ;
2222 const links = await page . $$ ( '.rspress-doc ul li a' ) ;
2323 const urls = await Promise . all (
2424 links . map ( async link => {
@@ -28,35 +28,37 @@ test.describe('basic test', async () => {
2828 ) ;
2929
3030 expect ( urls ) . toEqual ( [
31- '/guide/installation.html' ,
32- '/guide/installation.html' ,
33- '/guide/installation.html' ,
34- '/guide/installation.html' ,
35- '/guide/installation.html' ,
36- '/guide/installation.html' ,
37- '/guide/installation.html' ,
38- '/guide/installation.html' ,
39- '/guide/installation.html' ,
40- '/guide/installation.html' ,
41- '/guide/installation.html' ,
31+ '/base/guide/installation.html' ,
32+ '/base/guide/installation.html' ,
33+ '/base/guide/installation.html' ,
34+ '/base/guide/installation.html' ,
4235 //
43- '/guide/subfolder/foo .html' ,
44- '/guide/subfolder/foo .html' ,
45- '/guide/subfolder/foo .html' ,
46- '/guide/subfolder/foo .html' ,
47- '/guide/subfolder/foo .html' ,
48- '/guide/subfolder/foo .html' ,
49- '/guide/subfolder/foo .html' ,
50- '/guide/subfolder/foo .html' ,
36+ '/base/ guide/installation .html' ,
37+ '/base/ guide/installation .html' ,
38+ '/base/ guide/installation .html' ,
39+ '/base/ guide/installation .html' ,
40+ '/base/ guide/installation .html' ,
41+ '/base/ guide/installation .html' ,
42+ '/base/ guide/installation .html' ,
43+ '/base/ guide/installation .html' ,
5144 //
52- '/guide/subfolder.html' ,
53- '/guide/subfolder.html' ,
54- '/guide/subfolder/index.html' ,
55- '/guide/subfolder/index.html' ,
56- '/guide/subfolder.html' ,
57- '/guide/subfolder.html' ,
58- '/guide/subfolder/index.html' ,
59- '/guide/subfolder/index.html' ,
45+ '/base/guide/subfolder/foo.html' ,
46+ '/base/guide/subfolder/foo.html' ,
47+ '/base/guide/subfolder/foo.html' ,
48+ '/base/guide/subfolder/foo.html' ,
49+ '/base/guide/subfolder/foo.html' ,
50+ '/base/guide/subfolder/foo.html' ,
51+ '/base/guide/subfolder/foo.html' ,
52+ '/base/guide/subfolder/foo.html' ,
53+ //
54+ '/base/guide/subfolder.html' ,
55+ '/base/guide/subfolder.html' ,
56+ '/base/guide/subfolder/index.html' ,
57+ '/base/guide/subfolder/index.html' ,
58+ '/base/guide/subfolder.html' ,
59+ '/base/guide/subfolder.html' ,
60+ '/base/guide/subfolder/index.html' ,
61+ '/base/guide/subfolder/index.html' ,
6062 ] ) ;
6163 } ) ;
6264} ) ;
0 commit comments