From 19953c661d21ba356d248cc919c15da6ce424b88 Mon Sep 17 00:00:00 2001 From: Alexandre Hajjar Date: Tue, 8 Jun 2021 21:32:07 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Make=20mycompanyinfrance=20e2e=20te?= =?UTF-8?q?sts=20run=20only=20EN=20specs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yaml | 2 +- mon-entreprise/cypress/integration/README.md | 6 ++++++ .../integration/mon-entreprise/{ => english}/gérer.js | 0 .../integration/mon-entreprise/{ => english}/landing.js | 0 .../integration/mon-entreprise/{ => english}/navigation.js | 0 .../integration/mon-entreprise/{ => english}/status.js | 0 mon-entreprise/package.json | 2 +- 7 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 mon-entreprise/cypress/integration/README.md rename mon-entreprise/cypress/integration/mon-entreprise/{ => english}/gérer.js (100%) rename mon-entreprise/cypress/integration/mon-entreprise/{ => english}/landing.js (100%) rename mon-entreprise/cypress/integration/mon-entreprise/{ => english}/navigation.js (100%) rename mon-entreprise/cypress/integration/mon-entreprise/{ => english}/status.js (100%) 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",