Files
freeCodeCamp/cypress/integration/learn/coding-interview-prep/intro-page.js
Kristofer Koishigawa e82f5f4425 feat: update titles for certification pages (#42252)
* feat: update titles for certification pages

* fix: update titles in Cypress tests

* fix: change "certificate" to "certification" in intro-page.js test file

* fix: prevent adding "Certification" to title for interview prep, make variable name more clear

* feat: add test for coding interview prep page title
2021-06-04 12:04:02 +02:00

20 lines
517 B
JavaScript

/* global cy */
describe('Certification intro page', () => {
before(() => {
cy.clearCookies();
cy.login();
cy.visit('/learn/coding-interview-prep');
});
it('Should render', () => {
cy.contains(
"If you're looking for free coding exercises to prepare for your next job interview, we've got you covered."
).should('be.visible');
});
it('Title should not include the word "Certification"', () => {
cy.title().should('eq', 'Coding Interview Prep | freeCodeCamp.org');
});
});