| 1 | context('Base path deployment', () => { |
| 2 | after(() => { |
| 3 | cy.task('stopBasePathServer') |
| 4 | }) |
| 5 | |
| 6 | it('keeps slide navigation relative to the router base', () => { |
| 7 | // Building the fixture inside the task can take a while, especially on CI |
| 8 | cy.task<string>('startBasePathServer', undefined, { timeout: 300_000 }).then((url) => { |
| 9 | cy.visit(`${url}1`) |
| 10 | cy.get('#page-root > #slide-container > #slide-content') |
| 11 | cy.get('body').wait(500).type('{rightarrow}') |
| 12 | cy.url().should('eq', `${url}2`) |
| 13 | }) |
| 14 | }) |
| 15 | }) |
| 16 |