fix: cypress (#45593)
This commit is contained in:
@ -26,9 +26,15 @@ describe('Backend challenge', function () {
|
||||
|
||||
it('does not generate unhandled errors on submission', () => {
|
||||
cy.visit(locations.index);
|
||||
cy.get(selectors.input)
|
||||
.type('https://example.com')
|
||||
.type('{enter}')
|
||||
cy.get(selectors.input).type('https://example.com');
|
||||
|
||||
// temporary fix until https://github.com/cypress-io/cypress/issues/20562 is fixed
|
||||
cy.contains(`I've completed this challenge`)
|
||||
.click()
|
||||
|
||||
// revert to this when it is
|
||||
// .type('{enter}')
|
||||
|
||||
.then(() => {
|
||||
cy.get(selectors.defaultOutput)
|
||||
.contains(runningOutput)
|
||||
|
@ -9,9 +9,14 @@ describe('CodeAlly cert challenge', function () {
|
||||
});
|
||||
|
||||
it('should not allow you to submit a URL', function () {
|
||||
cy.get('input[name="solution"]')
|
||||
.type('https://example.com')
|
||||
.type('{enter}');
|
||||
cy.get('input[name="solution"]').type('https://example.com');
|
||||
|
||||
// temporary fix until https://github.com/cypress-io/cypress/issues/20562 is fixed
|
||||
cy.contains(`I've completed this challenge`).click();
|
||||
|
||||
// revert to this when it is
|
||||
// .type('{enter}')
|
||||
|
||||
cy.contains('You must complete the project first.');
|
||||
});
|
||||
});
|
||||
@ -26,9 +31,14 @@ describe('CodeAlly cert challenge', function () {
|
||||
});
|
||||
|
||||
it('should allow you to submit a URL', function () {
|
||||
cy.get('input[name="solution"]')
|
||||
.type('https://example.com')
|
||||
.type('{enter}');
|
||||
cy.get('input[name="solution"]').type('https://example.com');
|
||||
|
||||
// temporary fix until https://github.com/cypress-io/cypress/issues/20562 is fixed
|
||||
cy.contains(`I've completed this challenge`).click();
|
||||
|
||||
// revert to this when it is
|
||||
// .type('{enter}')
|
||||
|
||||
cy.get('.completion-modal-body');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user