feat: update title meta (#40362)
This commit is contained in:
@ -31,7 +31,7 @@ export const Landing = ({ page = 'landing' }) => {
|
|||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>Learn to code at home | freeCodeCamp.org</title>
|
<title>Learn to Code for Free – Coding Courses for Busy People</title>
|
||||||
</Helmet>
|
</Helmet>
|
||||||
<main className='landing-page'>
|
<main className='landing-page'>
|
||||||
<Grid>
|
<Grid>
|
||||||
|
@ -77,7 +77,7 @@ export const LearnPage = ({
|
|||||||
const hashValue = hashValueSelector(state, hash);
|
const hashValue = hashValueSelector(state, hash);
|
||||||
return (
|
return (
|
||||||
<LearnLayout>
|
<LearnLayout>
|
||||||
<Helmet title='Learn to code at home | freeCodeCamp.org' />
|
<Helmet title='Learn to Code for Free – Coding Courses for Busy People' />
|
||||||
<Grid>
|
<Grid>
|
||||||
<Intro
|
<Intro
|
||||||
complete={complete}
|
complete={complete}
|
||||||
|
@ -23,7 +23,10 @@ const certifications = [
|
|||||||
describe('Landing page', () => {
|
describe('Landing page', () => {
|
||||||
it('Should render', () => {
|
it('Should render', () => {
|
||||||
cy.visit('/');
|
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.contains(selectors.callToAction, "Get started (it's free)");
|
||||||
cy.get(selectors.callToAction).should('have.length', 2);
|
cy.get(selectors.callToAction).should('have.length', 2);
|
||||||
});
|
});
|
||||||
|
@ -26,7 +26,10 @@ describe('Learn Landing page (not logged in)', () => {
|
|||||||
it('Should render', () => {
|
it('Should render', () => {
|
||||||
cy.visit(locations.index);
|
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', () => {
|
it('Has the correct heading for an unauthenticated User', () => {
|
||||||
|
Reference in New Issue
Block a user