2022-07-11 10:24:01 -07:00
|
|
|
const ONE_MINUTE = 60_000
|
|
|
|
|
|
|
|
describe(
|
|
|
|
'Release',
|
|
|
|
{
|
|
|
|
pageLoadTimeout: ONE_MINUTE,
|
|
|
|
retries: 30,
|
|
|
|
},
|
|
|
|
() => {
|
|
|
|
it('loads swap page', () => {
|
2022-12-21 03:08:20 +04:00
|
|
|
// TODO: We *must* wait in order to space out the retry attempts. Find a better way to do this.
|
|
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
2022-07-11 10:24:01 -07:00
|
|
|
cy.wait(ONE_MINUTE)
|
|
|
|
.visit('/', {
|
|
|
|
retryOnStatusCodeFailure: true,
|
|
|
|
retryOnNetworkFailure: true,
|
|
|
|
})
|
|
|
|
.get('#swap-page')
|
|
|
|
})
|
|
|
|
}
|
|
|
|
)
|