Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Vote 787 -> excluded links test update #797

Merged
merged 4 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions cypress/e2e/excludedLinks/excluded-links-english.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/// <reference types="Cypress" />

// this test will run out of the pipeline and will be a manaul test each sprint

const english = require("../../fixtures/excluded-links-english.json");


describe('check excluded links', () => {
english.forEach(url => {
it('validate page loads - english', () => {
cy.visit(url, {failOnStatusCode: false})
cy.get('body').children().its('length').should('be.gt', 0)

})
})
})
16 changes: 16 additions & 0 deletions cypress/e2e/excludedLinks/excluded-links-spanish.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/// <reference types="Cypress" />

// this test will run out of the pipeline and will be a manaul test each sprint

const spanish = require("../../fixtures/excluded-links-spanish.json");


describe('check excluded links', () => {
spanish.forEach(url => {
it('validate page loads - spanish', () => {
cy.visit(url, {failOnStatusCode: false})
cy.get('body').children().its('length').should('be.gt', 0)

})
})
})
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="Cypress" />


const allPages = require("../../fixtures/site-pages.json");

const excludedlinks = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const excludedlinks = [
'https://vote.sos.ri.gov/VoterSpanish/RegisterToVote?ref=voteusa_es',
'https://vote.sos.ri.gov/HomeSpanish/UpdateVoterRecord?ActiveFlag=0&?ref=voteusa_es',
// sc links
'https://vrems.scvotes.sc.gov/Voter/Login?ref=voteusa_es',
'https://scvotes.gov/voters/register-to-vote/?ref=voteusa_es',
'https://info.scvotes.sc.gov/eng/ovr/start.aspx?ref=voteusa_es'
'https://vrems.scvotes.sc.gov/Voter/Login?ref=voteusa_es',
'https://scvotes.gov/voters/register-to-vote/?ref=voteusa_es',
'https://info.scvotes.sc.gov/eng/ovr/start.aspx?ref=voteusa_es'
];

describe("Spanish External Link Validator Test", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"https://vrems.scvotes.sc.gov/Voter/Login?ref=voteusa_en",
"https://scvotes.gov/voters/register-to-vote/?ref=voteusa_en",
"https://info.scvotes.sc.gov/eng/ovr/start.aspx?ref=voteusa_en"


]
]
50 changes: 0 additions & 50 deletions cypress/support/excluded-links-english.cy.js

This file was deleted.

27 changes: 0 additions & 27 deletions cypress/support/excluded-links-spanish.cy.js

This file was deleted.