* fix: add cert to email for when all certs are earned * fix: unhide rdbms from production * fix: cert project input field * feat: add cypress tests * fix: message on project pages to lower expectations * fix: update instructions * fix: add quincy's suggestions * fix: add beta label and reorder * fix: utils test * fix: move rdbms to bottom of settings * fix: cypress tests * Apply suggestions from code review Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * fix: only drop seeded users webhook tokens Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
36 lines
1.1 KiB
JavaScript
36 lines
1.1 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')
|
|
.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')
|
|
.type('{enter}');
|
|
cy.get('.completion-modal-body').should('exist');
|
|
});
|
|
});
|
|
});
|