mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* 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
43 lines
1.4 KiB
JavaScript
43 lines
1.4 KiB
JavaScript
import * as constants from '../../support/constants.js'
|
|
import * as main from '../pages/main.page.js'
|
|
import * as space from '../pages/spaces.page.js'
|
|
import * as ls from '../../support/localstorage_data.js'
|
|
import { signInToSpaces } from '../../support/spaces-login.js'
|
|
import staticSpaces from '../../fixtures/spaces/staticSpaces.js'
|
|
|
|
const SPACE_ID = staticSpaces.dashboardWithSafes.uuid
|
|
|
|
describe(
|
|
'[VISUAL] Spaces address book screenshots',
|
|
{ defaultCommandTimeout: 60000, ...constants.VISUAL_VIEWPORT },
|
|
() => {
|
|
beforeEach(() => {
|
|
signInToSpaces()
|
|
})
|
|
|
|
it('[VISUAL] Screenshot spaces address book workspace contacts tab', () => {
|
|
cy.visit(constants.spaceAddressBookUrl + SPACE_ID)
|
|
main.awaitVisualStability()
|
|
})
|
|
|
|
it.skip('[VISUAL] Screenshot spaces address book local contacts tab', () => {
|
|
cy.visit(constants.spaceAddressBookUrl + SPACE_ID, {
|
|
onBeforeLoad(win) {
|
|
win.localStorage.setItem(
|
|
constants.localStorageKeys.SAFE_v2__addressBook,
|
|
JSON.stringify(ls.addressBookData.sepoliaAddress1),
|
|
)
|
|
},
|
|
})
|
|
space.clickAddressBookTab(space.addressBookTabLocal)
|
|
main.awaitVisualStability()
|
|
})
|
|
|
|
it.skip('[VISUAL] Screenshot spaces address book pending tab', () => {
|
|
cy.visit(constants.spaceAddressBookUrl + SPACE_ID)
|
|
space.clickAddressBookTab(space.addressBookTabPending)
|
|
main.awaitVisualStability()
|
|
})
|
|
},
|
|
)
|