From 2959196b356822fedce1f94b5c8887e2d1f0c94c Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Mon, 7 Dec 2020 13:15:11 +0300 Subject: [PATCH] feat: update title meta (#40362) --- client/src/components/landing/index.js | 2 +- client/src/pages/learn.js | 2 +- cypress/integration/landing.js | 5 ++++- cypress/integration/learn/index.js | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/client/src/components/landing/index.js b/client/src/components/landing/index.js index e580dadfad..167909e28e 100644 --- a/client/src/components/landing/index.js +++ b/client/src/components/landing/index.js @@ -31,7 +31,7 @@ export const Landing = ({ page = 'landing' }) => { return ( - Learn to code at home | freeCodeCamp.org + Learn to Code for Free – Coding Courses for Busy People
diff --git a/client/src/pages/learn.js b/client/src/pages/learn.js index e2060e0254..ae0fd1f5a0 100644 --- a/client/src/pages/learn.js +++ b/client/src/pages/learn.js @@ -77,7 +77,7 @@ export const LearnPage = ({ const hashValue = hashValueSelector(state, hash); return ( - + { it('Should render', () => { cy.visit('/'); - cy.title().should('eq', 'Learn to code at home | freeCodeCamp.org'); + cy.title().should( + 'eq', + 'Learn to Code for Free – Coding Courses for Busy People' + ); cy.contains(selectors.callToAction, "Get started (it's free)"); cy.get(selectors.callToAction).should('have.length', 2); }); diff --git a/cypress/integration/learn/index.js b/cypress/integration/learn/index.js index dcfcd49517..58c032371a 100644 --- a/cypress/integration/learn/index.js +++ b/cypress/integration/learn/index.js @@ -26,7 +26,10 @@ describe('Learn Landing page (not logged in)', () => { it('Should render', () => { cy.visit(locations.index); - cy.title().should('eq', 'Learn to code at home | freeCodeCamp.org'); + cy.title().should( + 'eq', + 'Learn to Code for Free – Coding Courses for Busy People' + ); }); it('Has the correct heading for an unauthenticated User', () => {