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
37 lines
1.3 KiB
JavaScript
37 lines
1.3 KiB
JavaScript
import * as constants from '../../support/constants.js'
|
|
import * as main from '../pages/main.page.js'
|
|
import * as createtx from '../pages/create_tx.pages.js'
|
|
import * as wallet from '../../support/utils/wallet.js'
|
|
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
|
|
import { mockVisualTestApis } from '../../support/visual-mocks.js'
|
|
|
|
let staticSafes = []
|
|
|
|
const walletCredentials = JSON.parse(Cypress.env('CYPRESS_WALLET_CREDENTIALS'))
|
|
const signer = walletCredentials.OWNER_4_PRIVATE_KEY
|
|
|
|
describe(
|
|
'[VISUAL] Create transaction flow screenshots',
|
|
{ defaultCommandTimeout: 60000, ...constants.VISUAL_VIEWPORT },
|
|
() => {
|
|
before(async () => {
|
|
staticSafes = await getSafes(CATEGORIES.static)
|
|
})
|
|
|
|
beforeEach(() => {
|
|
mockVisualTestApis()
|
|
wallet.connectSignerViaStorage(signer, constants.BALANCE_URL + staticSafes.SEP_STATIC_SAFE_10)
|
|
createtx.clickOnNewtransactionBtn()
|
|
createtx.clickOnSendTokensBtn()
|
|
main.awaitVisualStability()
|
|
})
|
|
|
|
it('[VISUAL] Screenshot send form with filled recipient and amount', () => {
|
|
createtx.typeRecipientAddress(constants.RECIPIENT_ADDRESS)
|
|
createtx.clickOnTokenselectorAndSelectToken('Ether')
|
|
createtx.setMaxAmount()
|
|
main.awaitVisualStability()
|
|
})
|
|
},
|
|
)
|