mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 18:14:19 -08:00
* Add public engagement page - modifies sitemap config - creates PublicEvent component - adds SVGs for dates - all copy is in intl * Add Public Engagement button to each page - create new PublicEng component - add to each page - update snapshots - modify CEJST and Meth page to give button more space * Make mobile compliant and fix DOM validation error - transform each <p>'s descendent into a <CollectionDescription> - fix a mobile rendering issue with <Collection> library - format registration links so they render on mobile - update snapshots * Add spacing to descriptions and fix links * Add Gherkin tests for testing links - all zoom links should be functional - ensure all legacy tests, test the new page - add data-cy tag for cypress - update snapshots * Refactor to pass accessibility on all pages - update snapshots * Correct registration links * Make registration links into buttons * Make new tag bold * Update copy based on feedback from Corey
23 lines
561 B
JavaScript
23 lines
561 B
JavaScript
// / <reference types="Cypress" />
|
|
|
|
describe('Do all the English pages have all links with a defined href attribute?', () => {
|
|
const pages = [
|
|
'/',
|
|
'cejst',
|
|
'methodology',
|
|
'contact',
|
|
'public-engagement',
|
|
];
|
|
|
|
pages.forEach((page) => {
|
|
it(`test all href attr on ${page} page`, () => {
|
|
cy.visit(page);
|
|
|
|
// Checks to make sure all a tags have an href:
|
|
cy.get('a').each(($a) => {
|
|
const message = $a.text();
|
|
expect($a, message).to.have.attr('href').not.contain('undefined');
|
|
});
|
|
});
|
|
});
|
|
});
|