mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 18:14:19 -08:00
14 lines
377 B
JavaScript
14 lines
377 B
JavaScript
|
// / <reference types="Cypress" />
|
||
|
|
||
|
describe('tests links on Explore Tool Page', () => {
|
||
|
it('validate file download', () => {
|
||
|
cy.visit('localhost:8000/en/cejst');
|
||
|
|
||
|
// 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');
|
||
|
});
|
||
|
});
|
||
|
});
|