diff --git a/cypress/integration/routing/index-file.spec.js b/cypress/integration/routing/index-file.spec.js index 3aeb0438f4..1d9da49356 100644 --- a/cypress/integration/routing/index-file.spec.js +++ b/cypress/integration/routing/index-file.spec.js @@ -7,7 +7,7 @@ context('routing.indexFile', () => { cy.get('#main').should('contain', 'Bug Fixes'); }) - it('handles index file routing with fragments', () => { + it('handles index file routing with root fragment', () => { cy.visit('http://localhost:3000/index.html#/'); cy.get('.sidebar-nav').contains('Changelog').click(); @@ -15,6 +15,12 @@ context('routing.indexFile', () => { cy.get('#main').should('contain', 'Bug Fixes'); }) + it('handles index file routing with page fragment', () => { + cy.visit('http://localhost:3000/index.html#/changelog'); + + cy.get('#main').should('contain', 'Bug Fixes'); + }) + it('returns 404 for index file with leading fragment', () => { cy.visit('http://localhost:3000/#/index.html/'); @@ -28,7 +34,6 @@ context('routing.indexFile', () => { }).then((resp) => expect(500).to.eq(resp.status)) }) - it('does not serve shadowing index markdown file', () => { cy.request({ url: 'http://localhost:3000/index.md',