Skip to content

Commit

Permalink
add burn in mismatch system-test
Browse files Browse the repository at this point in the history
  • Loading branch information
mabela416 committed Oct 16, 2023
1 parent 4bf8e3e commit 624acb4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions system-tests/test/record_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,39 @@ describe('e2e record', () => {
})
})

describe('create run 422 - burn-in config mismatch', () => {
setupStubbedServer(createRoutes({
postRun: {
res (req, res) {
return res.status(422).json({
code: 'BURN_IN_MISMATCH',
payload: {
runUrl: 'https://cloud.cypress.io/runs/12345',
},
})
},
},
}))

it('errors when first run burn-in config is different from non-first run', function () {
return systemTests.exec(this, {
key: 'f858a2bc-b469-4e48-be67-0876339ee7e1',
configFile: 'cypress-with-project-id.config.js',
spec: 'record_pass*',
record: true,
snapshot: true,
expectedExitCode: 1,
})
.then(() => {
const urls = getRequestUrls()

expect(urls).to.deep.eq([
'POST /runs',
])
})
})
})

describe('create run 412', () => {
setupStubbedServer(createRoutes({
postRun: {
Expand Down

0 comments on commit 624acb4

Please sign in to comment.