diff --git a/_includes/banner.html b/_includes/banner.html deleted file mode 100644 index 8b0ffc93..00000000 --- a/_includes/banner.html +++ /dev/null @@ -1,3 +0,0 @@ -
diff --git a/_includes/layouts/base.html b/_includes/layouts/base.html index eec43362..6a4a5742 100644 --- a/_includes/layouts/base.html +++ b/_includes/layouts/base.html @@ -15,8 +15,6 @@ {% include "menu.html" primary_navigation: site.primary_navigation secondary_navigation: site.secondary_navigation %} - {% include "banner.html" %} - {{ content }} {% include "footer.html" %} diff --git a/cypress/e2e/home_page.cy.js b/cypress/e2e/home_page.cy.js index 05b6cf65..236fae07 100644 --- a/cypress/e2e/home_page.cy.js +++ b/cypress/e2e/home_page.cy.js @@ -15,6 +15,14 @@ describe('The Home Page', () => { }); }); + describe('Anniversary', () => { + it('doesn\'t have the 15 year anniversary banner', () => { + cy.get('div.banner.padding-2.text-center').should('not.exist'); + }) + it('doesn\'t have the anniversary section', ()=> { + cy.get('section.usa-section.anniversary').should('not.exist'); + }) + }) describe('Hero', () => { it('has the expected title', () => { cy.get('h1').contains("The Home of the U.S. Government's Open Data"); @@ -26,6 +34,15 @@ describe('The Home Page', () => { }); describe('The Metrics Widgets', () => { + it('has the metrics section', ()=> { + cy.get('section.usa-section.metrics').should('exist'); + }) + it('has a title', () => { + cy.get('section.usa-section.metrics').find('h1').contains('Metrics') + }) + it('has a description', () => { + cy.get('section.usa-section.metrics').find('div:not([class])').contains(' Below') + }) it('has a bar chart by org type', () => { cy.get('#datagov-bar-chart-org').should('be.visible').should('have.data', 'metric'); }); diff --git a/pages/index.html b/pages/index.html index 33c24b6f..40e77f81 100644 --- a/pages/index.html +++ b/pages/index.html @@ -71,42 +71,17 @@
-