Skip to content

Commit

Permalink
fix(e2e): utilisation du sitemap pour générer les tests e2e (#6063)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot authored Aug 7, 2024
1 parent dc5c979 commit 7d2aad0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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", () => {
[
Expand Down
6 changes: 3 additions & 3 deletions packages/code-du-travail-frontend/cypress/support/before.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7d2aad0

Please sign in to comment.