Add dropdown to navigation links

- add download page
- move main pages tests to their own folder
- add download and public eng snapshot test
- remove public engagement button on each page
- swap index with cejst
- update cypress ENDPOINTS
- upate gatsby-config sitemap
- update snapshots
- cypress tests are failing
This commit is contained in:
Vim USDS 2022-04-04 19:12:49 -07:00
commit 32f2609dde
29 changed files with 2700 additions and 421 deletions

View file

@ -13,6 +13,11 @@ Given('I am on the {string} page', (page) => {
});
// Common Whens:
When(`I click on the {string} dropdown in the navigation`, (page) => {
const pageHyphenCase = hyphenizeString(page);
cy.get(`[data-cy="nav-dropdown-${pageHyphenCase}"]`).click();
});
When(`I click on the {string} page in the navigation`, (page) => {
const pageHyphenCase = hyphenizeString(page);
cy.get(`[data-cy="nav-link-${pageHyphenCase}"]`).click();