diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 32d863ef2..75945f59d 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -170,7 +170,7 @@ jobs: baseUrl: ${{ needs.deploy-context.outputs.fr_url }} language: fr - site: en - integrationFolder: mon-entreprise + integrationFolder: mon-entreprise/english baseUrl: ${{ needs.deploy-context.outputs.en_url }} language: en - site: publicodes diff --git a/mon-entreprise/cypress/integration/README.md b/mon-entreprise/cypress/integration/README.md new file mode 100644 index 000000000..86605790a --- /dev/null +++ b/mon-entreprise/cypress/integration/README.md @@ -0,0 +1,6 @@ +## mon-entreprise e2e test specs + +Les jeux de tests qu'on souhaite faire tourner avec le langage FR et EN doivent aller dans le +sous-dossier `mon-entreprise/english`. + +Les autres jeux ne seront testés qu'avent le langage FR. diff --git a/mon-entreprise/cypress/integration/mon-entreprise/gérer.js b/mon-entreprise/cypress/integration/mon-entreprise/english/gérer.js similarity index 100% rename from mon-entreprise/cypress/integration/mon-entreprise/gérer.js rename to mon-entreprise/cypress/integration/mon-entreprise/english/gérer.js diff --git a/mon-entreprise/cypress/integration/mon-entreprise/landing.js b/mon-entreprise/cypress/integration/mon-entreprise/english/landing.js similarity index 100% rename from mon-entreprise/cypress/integration/mon-entreprise/landing.js rename to mon-entreprise/cypress/integration/mon-entreprise/english/landing.js diff --git a/mon-entreprise/cypress/integration/mon-entreprise/navigation.js b/mon-entreprise/cypress/integration/mon-entreprise/english/navigation.js similarity index 100% rename from mon-entreprise/cypress/integration/mon-entreprise/navigation.js rename to mon-entreprise/cypress/integration/mon-entreprise/english/navigation.js diff --git a/mon-entreprise/cypress/integration/mon-entreprise/status.js b/mon-entreprise/cypress/integration/mon-entreprise/english/status.js similarity index 100% rename from mon-entreprise/cypress/integration/mon-entreprise/status.js rename to mon-entreprise/cypress/integration/mon-entreprise/english/status.js diff --git a/mon-entreprise/package.json b/mon-entreprise/package.json index 65ea048e0..e2bd7b9c0 100644 --- a/mon-entreprise/package.json +++ b/mon-entreprise/package.json @@ -116,7 +116,7 @@ "test:bundlesize": "bundlesize", "test:dev-e2e:publicodes": "cypress open --browser chromium --config baseUrl=http://localhost:8080/publicodes,integrationFolder=cypress/integration/publi.codes", "test:dev-e2e:mon-entreprise": "cypress open --browser chromium", - "test:dev-e2e:mycompanyinfrance": "cypress open --browser chromium --config baseUrl=http://localhost:8080/infrance", + "test:dev-e2e:mycompanyinfrance": "cypress open --browser chromium --config baseUrl=http://localhost:8080/infrance,integrationFolder=cypress/integration/mon-entreprise/english --env language=en", "test:record-http-calls:mon-entreprise": "cypress run --env record_http=", "i18n:rules:check": "node scripts/i18n/check-missing-rule-translation.js", "i18n:rules:translate": "node scripts/i18n/translate-rules.js",