Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Cannot serve off /.../index.html #1372

Merged
Prev Previous commit
Next Next commit
Add end-to-end test for index file hosting
rgladwell committed Oct 16, 2020
commit 36705c754219da569f728611c8acf5d579084842
9 changes: 9 additions & 0 deletions cypress/integration/routing/index-file.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
context('routing.indexFile', () => {
it('handles index file routing', () => {
cy.visit('http://localhost:3000/index.html');

cy.get('.sidebar-nav').contains('Changelog').click();

cy.get('#main').should('contain', 'Bug Fixes');
})
});