Run e2e tests with external API calls in cron

pull/1615/head
Alexandre Hajjar 2021-06-05 21:50:52 +02:00
parent ceed101460
commit 3dd7842b0b
2 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -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(() => {