test: improve output flake by removing chaining (#51640)

This commit is contained in:
Oliver Eyton-Williams
2023-09-25 05:22:38 +02:00
committed by GitHub
parent 27062f4dc0
commit ca17061e52

View File

@@ -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);
});
});