mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
Visual tests should never fail — they just take a screenshot of whatever
state the page is in and let Argos detect visual diffs. Removed all
.should('be.visible') assertions that could cause test failures when
content doesn't render in time on CI.
Co-authored-by: Hanzo Dev <[email protected]>
20 lines
636 B
JavaScript
20 lines
636 B
JavaScript
import * as constants from '../../support/constants.js'
|
|
import * as main from '../pages/main.page.js'
|
|
import { mockVisualTestApis } from '../../support/visual-mocks.js'
|
|
|
|
describe('[VISUAL] Error page screenshots', { defaultCommandTimeout: 60000, ...constants.VISUAL_VIEWPORT }, () => {
|
|
beforeEach(() => {
|
|
mockVisualTestApis()
|
|
})
|
|
|
|
it('[VISUAL] Screenshot 404 page', () => {
|
|
cy.visit(constants.error404Url, { failOnStatusCode: false })
|
|
main.awaitVisualStability()
|
|
})
|
|
|
|
it('[VISUAL] Screenshot 403 page', () => {
|
|
cy.visit(constants.error403Url, { failOnStatusCode: false })
|
|
main.awaitVisualStability()
|
|
})
|
|
})
|