mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-25 14:01:29 -05:00
* feat: add stripe donate page test for non donors * fix: revert changes to see if ev is passed correctly * feat: download artifacts * fix: add quotations for spec args with global patterns * fix: remove firefox from cypress donation tests * fix: trigger action on main push * Apply suggestions from code review Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * feat: remove matrix and simplify Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
46 lines
1.4 KiB
JavaScript
46 lines
1.4 KiB
JavaScript
describe('CodeAlly cert challenge', function () {
|
|
describe('before completing the project', function () {
|
|
before(() => {
|
|
cy.exec('npm run seed');
|
|
cy.login();
|
|
cy.visit(
|
|
'/learn/relational-database/build-a-celestial-bodies-database-project/build-a-celestial-bodies-database'
|
|
);
|
|
});
|
|
|
|
it('should not allow you to submit a URL', function () {
|
|
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.');
|
|
});
|
|
});
|
|
|
|
describe('after completing the project', function () {
|
|
before(() => {
|
|
cy.exec('npm run seed:certified-user');
|
|
cy.login();
|
|
cy.visit(
|
|
'/learn/relational-database/build-a-celestial-bodies-database-project/build-a-celestial-bodies-database'
|
|
);
|
|
});
|
|
|
|
it('should allow you to submit a URL', function () {
|
|
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');
|
|
});
|
|
});
|
|
});
|