Files
VaryaandGitHub d6d949b537 fix(e2e): Argos Visual Regression tests (#8488)
* chore: reduce repetitive tests; remove tests for unreachable pages

* chore: merge all tests for Settings tabs into one file to avoid setup repetition

* feat: add a test for the collapsed sidebar

* feat: fix earn, stake, bridge, swap tests

* fix: Welcome page tests

* fix: NFTs and Positions tests

* fix: spaces tests setup with a real space instead of mocks

* feat: spaces dashboard tests

* feat: new visual tests for Spaces Settings, Secutiry Hub and Activity Log

* chore: removed unused mock files

* feat: add tests for Spaces AB, Members and Safe Accounts in Spaces

* chore: update `COVERAGE.md` for visual regression tests
2026-08-12 10:41:46 +02:00

27 lines
964 B
JavaScript

import * as constants from '../../support/constants.js'
import * as main from '../pages/main.page.js'
import * as dashboard from '../pages/dashboard.pages.js'
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
import { mockVisualTestApis } from '../../support/visual-mocks.js'
let staticSafes = []
describe('[VISUAL] Dashboard screenshots', { defaultCommandTimeout: 60000, ...constants.VISUAL_VIEWPORT }, () => {
before(async () => {
staticSafes = await getSafes(CATEGORIES.static)
})
beforeEach(() => {
mockVisualTestApis()
})
it('[VISUAL] Screenshot dashboard with pending transactions widget', () => {
cy.fixture('pending_tx/pending_tx_order.json').then((mockData) => {
cy.intercept('GET', constants.queuedEndpoint, mockData).as('getQueuedTransactions')
cy.visit(constants.homeUrl + staticSafes.SEP_STATIC_SAFE_2)
})
cy.wait('@getQueuedTransactions')
main.awaitVisualStability()
})
})