diff --git a/packages/code-du-travail-frontend/cypress/integration/light/validate-html.spec.ts b/packages/code-du-travail-frontend/cypress/integration/light/validate-html.spec.ts index c192e5ee16..a3941cad4e 100644 --- a/packages/code-du-travail-frontend/cypress/integration/light/validate-html.spec.ts +++ b/packages/code-du-travail-frontend/cypress/integration/light/validate-html.spec.ts @@ -1,9 +1,5 @@ import "cypress-html-validate/commands"; - -import urls from "../../support/urls-to-validate.json"; -import { ConfigData } from "cypress-html-validate"; -import {localConfig} from "../heavy/validate-html.spec"; - +import { localConfig } from "../heavy/validate-html.spec"; describe("Validation de l'html d'un échantillon de pages", () => { [ diff --git a/packages/code-du-travail-frontend/cypress/support/before.ts b/packages/code-du-travail-frontend/cypress/support/before.ts index bb08ec0d16..1ce6d39df8 100644 --- a/packages/code-du-travail-frontend/cypress/support/before.ts +++ b/packages/code-du-travail-frontend/cypress/support/before.ts @@ -27,14 +27,14 @@ export const downloadAllUrlsToValidate = async () => { JSON.stringify( urls.filter( (url) => - url.includes("/information") || - url.includes("/convention-collective") + url.includes("/information/") || + url.includes("/convention-collective/") ) ) ); const urlsContributions: string[] = urls.filter((url) => - url.includes("/contribution") + url.includes("/contribution/") ); fs.writeFileSync(