build: wait 1m between release tests (#4077)

This commit is contained in:
Zach Pomerantz 2022-07-11 10:24:01 -07:00 committed by GitHub
parent 2447afc43e
commit d5eed8b15f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 10 deletions

@ -2,8 +2,6 @@ import { defineConfig } from 'cypress'
export default defineConfig({
projectId: 'yp82ef',
pageLoadTimeout: 60000,
retries: 30,
e2e: {
specPattern: 'cypress/release.ts',
},

@ -1,8 +1,20 @@
describe('Release', () => {
it('loads swap page', () => {
cy.visit('/', {
retryOnStatusCodeFailure: true,
retryOnNetworkFailure: true,
}).get('#swap-page')
})
})
const ONE_MINUTE = 60_000
describe(
'Release',
{
pageLoadTimeout: ONE_MINUTE,
retries: 30,
},
() => {
it('loads swap page', () => {
// We *must* wait in order to space out the retry attempts.
cy.wait(ONE_MINUTE)
.visit('/', {
retryOnStatusCodeFailure: true,
retryOnNetworkFailure: true,
})
.get('#swap-page')
})
}
)