chore(e2e): temporary disable flaky test (#41010)

This commit is contained in:
Mrugesh Mohapatra
2021-02-09 14:15:18 +05:30
committed by GitHub
parent 3b0ebb3dcb
commit 827bcfaaa2

View File

@ -18,8 +18,10 @@ const defaultOutput = `
* Your test output will go here * Your test output will go here
*/`; */`;
const runningOutput = '// running tests'; // Disabled for https://github.com/freeCodeCamp/freeCodeCamp/issues/41009
const finishedOutput = '// tests completed';
// const runningOutput = '// running tests';
// const finishedOutput = '// tests completed';
describe('Classic challenge', function() { describe('Classic challenge', function() {
it('renders', () => { it('renders', () => {
@ -37,30 +39,34 @@ describe('Classic challenge', function() {
cy.get(selectors.defaultOutput).contains(defaultOutput); cy.get(selectors.defaultOutput).contains(defaultOutput);
}); });
it('shows test output when the tests are run', () => { // Disabled for https://github.com/freeCodeCamp/freeCodeCamp/issues/41009
cy.visit(locations.index);
// first wait for the editor to load
cy.get(selectors.editor, { timeout: 15000 });
cy.get(selectors.runTestsButton)
.click()
.then(() => {
cy.get(selectors.defaultOutput)
.contains(runningOutput)
.contains(finishedOutput);
});
});
it('shows test output when the tests are triggered by the keyboard', () => { // it('shows test output when the tests are run', () => {
cy.visit(locations.index); // cy.visit(locations.index);
// first wait for the editor to load // // first wait for the editor to load
cy.get(selectors.editor, { timeout: 15000 }); // cy.get(selectors.editor, { timeout: 15000 });
cy.get(selectors.hotkeys) // cy.get(selectors.runTestsButton)
.focus() // .click()
.type('{ctrl}{enter}') // .then(() => {
.then(() => { // cy.get(selectors.defaultOutput)
cy.get(selectors.defaultOutput) // .contains(runningOutput)
.contains(runningOutput) // .contains(finishedOutput);
.contains(finishedOutput); // });
}); // });
});
// it('shows test output when the tests are triggered by the keyboard', () => {
// cy.visit(locations.index);
// // first wait for the editor to load
// cy.get(selectors.editor, {
// timeout: 15000
// });
// cy.get(selectors.hotkeys)
// .focus()
// .type('{ctrl}{enter}')
// .then(() => {
// cy.get(selectors.defaultOutput)
// .contains(runningOutput)
// .contains(finishedOutput);
// });
// });
}); });