File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
cypress/integration/routing Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,20 @@ context('routing.indexFile', () => {
77 cy . get ( '#main' ) . should ( 'contain' , 'Bug Fixes' ) ;
88 } )
99
10- it ( 'handles index file routing with fragments ' , ( ) => {
10+ it ( 'handles index file routing with root fragment ' , ( ) => {
1111 cy . visit ( 'http://localhost:3000/index.html#/' ) ;
1212
1313 cy . get ( '.sidebar-nav' ) . contains ( 'Changelog' ) . click ( ) ;
1414
1515 cy . get ( '#main' ) . should ( 'contain' , 'Bug Fixes' ) ;
1616 } )
1717
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+
1824 it ( 'returns 404 for index file with leading fragment' , ( ) => {
1925 cy . visit ( 'http://localhost:3000/#/index.html/' ) ;
2026
@@ -28,7 +34,6 @@ context('routing.indexFile', () => {
2834 } ) . then ( ( resp ) => expect ( 500 ) . to . eq ( resp . status ) )
2935 } )
3036
31-
3237 it ( 'does not serve shadowing index markdown file' , ( ) => {
3338 cy . request ( {
3439 url : 'http://localhost:3000/index.md' ,
You can’t perform that action at this time.
0 commit comments