mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-20 15:01:40 -07:00
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:
parent
69edbe520e
commit
32f2609dde
29 changed files with 2700 additions and 421 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue