diff --git a/cypress/integration/legacy/redirects/adding-development.js b/cypress/integration/legacy/redirects/adding-development.js index abb172ea1d..ec98b6f28b 100644 --- a/cypress/integration/legacy/redirects/adding-development.js +++ b/cypress/integration/legacy/redirects/adding-development.js @@ -1,3 +1,7 @@ +// These tests require the client to be built and served with additional +// redirect configuration. The Cypress action in .github/workflows/cypress.yml +// contains the necessary commands to do this. + describe('Legacy redirects', () => { it('should redirect from front-end-libraries to front-end-development-libraries', () => { cy.visit('learn/front-end-libraries'); @@ -32,9 +36,7 @@ describe('Legacy redirects', () => { '/certification/certifieduser/front-end-development-libraries' ); }); - }); - it('should load this one challenge that throws an error if we do not test it separately', () => { cy.visit( 'learn/front-end-libraries/bootstrap/use-responsive-design-with-bootstrap-fluid-containers' ); @@ -43,6 +45,9 @@ describe('Legacy redirects', () => { '/learn/front-end-development-libraries/bootstrap/use-responsive-design-with-bootstrap-fluid-containers' ); }); + // Bit of hack: but we need to make sure the page is fully loaded before + // moving on. + cy.get('.react-monaco-editor-container').should('be.visible'); }); it('should redirect from /apis-and-microservices to /back-end-development-and-apis', () => {