mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
* Fix all failing cypress tests - update test name to be more appropriate - update download packet tests to CDN - update data-cy tag on About heading * Update snapshot
22 lines
536 B
JavaScript
22 lines
536 B
JavaScript
// / <reference types="Cypress" />
|
|
|
|
describe('Do all the English pages have all links with a defined href attribute?', () => {
|
|
const pages = [
|
|
'/',
|
|
'cejst',
|
|
'methodology',
|
|
'contact',
|
|
];
|
|
|
|
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');
|
|
});
|
|
});
|
|
});
|
|
});
|