feat: editor page title rework (#44246)

* fix: remove "learn" from title

* feat: translate title element
This commit is contained in:
Nicholas Carrigan (he/him)
2021-12-01 07:53:37 -08:00
committed by GitHub
parent 312b7afaf4
commit edf3185b2b
7 changed files with 16 additions and 18 deletions

View File

@ -19,7 +19,7 @@ describe('Backend challenge', function () {
cy.title().should(
'eq',
'Managing Packages with Npm - How to Use package.json, the Core of Any' +
'Managing Packages with NPM - How to Use package.json, the Core of Any' +
' Node.js Project or npm Package | Learn | freeCodeCamp.org'
);
});

View File

@ -27,8 +27,7 @@ describe('Classic challenge', function () {
it('renders the default output text', () => {
cy.title().should(
'eq',
'Learn Basic HTML and HTML5: Say Hello to HTML Elements |' +
' freeCodeCamp.org'
'Basic HTML and HTML5: Say Hello to HTML Elements |' + ' freeCodeCamp.org'
);
cy.get(selectors.defaultOutput).contains(defaultOutput);
});

View File

@ -43,7 +43,7 @@ describe('challenges/superblock/block/challenge redirect', function () {
cy.title().should(
'eq',
// eslint-disable-next-line max-len
'Learn Basic HTML and HTML5: Say Hello to HTML Elements | freeCodeCamp.org'
'Basic HTML and HTML5: Say Hello to HTML Elements | freeCodeCamp.org'
);
cy.location().should(loc => {
expect(loc.pathname).to.eq(locations.learnChallenge);