diff --git a/.github/workflows/test-external-integrations.yaml b/.github/workflows/test-external-integrations.yaml index 74b11ea84..73fbfdfc1 100644 --- a/.github/workflows/test-external-integrations.yaml +++ b/.github/workflows/test-external-integrations.yaml @@ -31,3 +31,15 @@ jobs: record: true tag: external-integration config: integrationFolder=cypress/integration/external,baseUrl=https://mon-entreprise.fr + + - name: e2e tests with external API calls + uses: cypress-io/github-action@v2 + with: + install: false + working-directory: mon-entreprise + # List here all the specs that are making external API calls: + spec: cypress/integration/mon-entreprise/gérer.js + record: true + tag: external-integration + config: integrationFolder=cypress/integration/mon-entreprise,baseUrl=https://mon-entreprise.fr + env: record_http= # prevent stubbing diff --git a/mon-entreprise/cypress/integration/mon-entreprise/gérer.js b/mon-entreprise/cypress/integration/mon-entreprise/gérer.js index 74ee277cb..b8601b74f 100644 --- a/mon-entreprise/cypress/integration/mon-entreprise/gérer.js +++ b/mon-entreprise/cypress/integration/mon-entreprise/gérer.js @@ -44,7 +44,9 @@ const waitResponses = (responses) => { } } -describe('Manage page test', function () { +describe(`Manage page test (${ + writeFixtures ? 'record mode' : 'stubbed mode' +})`, function () { let responses = {} const hostnamesToRecord = ['entreprise.data.gouv.fr', 'geo.api.gouv.fr'] beforeEach(() => {