Update minor frontend dependencies (#2190)

* Fix failing cypress tests

* Update minor packages to remove security issues
This commit is contained in:
Travis Newby 2023-03-08 07:18:47 -06:00 committed by GitHub
commit bf597b594b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 479 additions and 85 deletions

View file

@ -23,6 +23,11 @@ When(`I click on the {string} page in the navigation`, (page) => {
cy.get(`[data-cy="nav-link-${pageHyphenCase}"]`).click();
});
When(`I click on the {string} button in the navigation`, (page) => {
const pageHyphenCase = hyphenizeString(page);
cy.get(`[data-cy="nav-link-${pageHyphenCase}"]`).contains(page).click();
});
When(`I look for the {string} CTA`, (ctaString) => {
cy.get(`[data-cy="${hyphenizeString(ctaString)}-block"]`).as('CTA_block');
cy.get('@CTA_block').scrollIntoView().should('be.visible');