mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-20 03:21:39 -07:00
Make all page endpoints constants
- fix all cypress tests - refactor all test to use LegacyTests/constants/PAGES_ENDPOINTS - gatsby-config to use PAGES_ENDPOINTS - remove ScoreStepList component - update J40Header to use constants.PAGES_ENDPOINTS - update snapshots - there are 3 locations to update PAGES_ENDPOINTS, namely 1. LegacyTests/constants.tsx 2. constants.tsx 3. gatsby-config
This commit is contained in:
parent
32f2609dde
commit
abf49a9cbc
27 changed files with 93 additions and 163 deletions
|
@ -1,13 +1,9 @@
|
|||
// / <reference types="Cypress" />
|
||||
|
||||
import {PAGES_ENDPOINTS} from '../LegacyTests/constants';
|
||||
|
||||
describe('Do all the English pages have all links with a defined href attribute?', () => {
|
||||
const pages = [
|
||||
'/',
|
||||
'cejst',
|
||||
'methodology',
|
||||
'contact',
|
||||
'public-engagement',
|
||||
];
|
||||
const pages = Object.values(PAGES_ENDPOINTS);
|
||||
|
||||
pages.forEach((page) => {
|
||||
it(`test all href attr on ${page} page`, () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue