mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-18 07:03:01 -04:00
test: improve output flake by removing chaining (#51640)
This commit is contained in:
committed by
GitHub
parent
27062f4dc0
commit
ca17061e52
@@ -44,19 +44,15 @@ describe('Classic challenge', function () {
|
||||
cy.get(outputSelectors.editor, { timeout: 15000 });
|
||||
cy.get(outputSelectors.runTestsButton).click();
|
||||
|
||||
cy.get(selectors.dataCy.outputText)
|
||||
.contains(runningOutput)
|
||||
.contains(finishedOutput);
|
||||
cy.get(selectors.dataCy.outputText).contains(runningOutput);
|
||||
cy.get(selectors.dataCy.outputText).contains(finishedOutput);
|
||||
});
|
||||
|
||||
it('shows test output when the tests are triggered by the keyboard', () => {
|
||||
focusEditor()
|
||||
.type('{ctrl}{enter}')
|
||||
.then(() => {
|
||||
cy.get(selectors.dataCy.outputText)
|
||||
.contains(runningOutput)
|
||||
.contains(finishedOutput);
|
||||
});
|
||||
focusEditor().type('{ctrl}{enter}');
|
||||
|
||||
cy.get(selectors.dataCy.outputText).contains(runningOutput);
|
||||
cy.get(selectors.dataCy.outputText).contains(finishedOutput);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user