File tree 1 file changed +7
-2
lines changed
cypress/integration/routing
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,20 @@ context('routing.indexFile', () => {
7
7
cy . get ( '#main' ) . should ( 'contain' , 'Bug Fixes' ) ;
8
8
} )
9
9
10
- it ( 'handles index file routing with fragments ' , ( ) => {
10
+ it ( 'handles index file routing with root fragment ' , ( ) => {
11
11
cy . visit ( 'http://localhost:3000/index.html#/' ) ;
12
12
13
13
cy . get ( '.sidebar-nav' ) . contains ( 'Changelog' ) . click ( ) ;
14
14
15
15
cy . get ( '#main' ) . should ( 'contain' , 'Bug Fixes' ) ;
16
16
} )
17
17
18
+ it ( 'handles index file routing with page fragment' , ( ) => {
19
+ cy . visit ( 'http://localhost:3000/index.html#/changelog' ) ;
20
+
21
+ cy . get ( '#main' ) . should ( 'contain' , 'Bug Fixes' ) ;
22
+ } )
23
+
18
24
it ( 'returns 404 for index file with leading fragment' , ( ) => {
19
25
cy . visit ( 'http://localhost:3000/#/index.html/' ) ;
20
26
@@ -28,7 +34,6 @@ context('routing.indexFile', () => {
28
34
} ) . then ( ( resp ) => expect ( 500 ) . to . eq ( resp . status ) )
29
35
} )
30
36
31
-
32
37
it ( 'does not serve shadowing index markdown file' , ( ) => {
33
38
cy . request ( {
34
39
url : 'http://localhost:3000/index.md' ,
You can’t perform that action at this time.
0 commit comments