test: fix flaky redirect tests (#43243)
* test: fix flaky redirect tests * refactor: add warning about redirections in dev
This commit is contained in:
committed by
GitHub
parent
d964e18339
commit
4d529253cf
@ -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', () => {
|
describe('Legacy redirects', () => {
|
||||||
it('should redirect from front-end-libraries to front-end-development-libraries', () => {
|
it('should redirect from front-end-libraries to front-end-development-libraries', () => {
|
||||||
cy.visit('learn/front-end-libraries');
|
cy.visit('learn/front-end-libraries');
|
||||||
@ -32,9 +36,7 @@ describe('Legacy redirects', () => {
|
|||||||
'/certification/certifieduser/front-end-development-libraries'
|
'/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(
|
cy.visit(
|
||||||
'learn/front-end-libraries/bootstrap/use-responsive-design-with-bootstrap-fluid-containers'
|
'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'
|
'/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', () => {
|
it('should redirect from /apis-and-microservices to /back-end-development-and-apis', () => {
|
||||||
|
Reference in New Issue
Block a user