Files
safe-wallet/apps/web/cypress/e2e/visual/settings_data_security.cy.js
72c54a662a tests: remove assertions from visual regression tests (#7309)
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]>
2026-03-03 12:37:50 +01:00

31 lines
903 B
JavaScript

import * as constants from '../../support/constants.js'
import * as main from '../pages/main.page.js'
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
import { mockVisualTestApis } from '../../support/visual-mocks.js'
let staticSafes = []
describe(
'[VISUAL] Data and Security settings screenshots',
{ defaultCommandTimeout: 60000, ...constants.VISUAL_VIEWPORT },
() => {
before(async () => {
staticSafes = await getSafes(CATEGORIES.static)
})
beforeEach(() => {
mockVisualTestApis()
})
it('[VISUAL] Screenshot data settings page', () => {
cy.visit(constants.dataSettingsUrl + staticSafes.SEP_STATIC_SAFE_4)
main.awaitVisualStability()
})
it('[VISUAL] Screenshot security settings page', () => {
cy.visit(constants.securityUrl + staticSafes.SEP_STATIC_SAFE_4)
main.awaitVisualStability()
})
},
)