mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
37 lines
1.2 KiB
JavaScript
37 lines
1.2 KiB
JavaScript
import * as constants from '../../support/constants'
|
|
import * as main from '../../e2e/pages/main.page'
|
|
import * as owner from '../pages/owners.pages'
|
|
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
|
|
import * as wallet from '../../support/utils/wallet.js'
|
|
|
|
let staticSafes = []
|
|
const walletCredentials = JSON.parse(Cypress.env('CYPRESS_WALLET_CREDENTIALS'))
|
|
const signer = walletCredentials.OWNER_4_PRIVATE_KEY
|
|
|
|
describe('[SMOKE] Replace Owners tests', () => {
|
|
before(async () => {
|
|
staticSafes = await getSafes(CATEGORIES.static)
|
|
})
|
|
|
|
beforeEach(() => {
|
|
cy.visit(constants.setupUrl + staticSafes.SEP_STATIC_SAFE_4)
|
|
cy.contains(owner.safeAccountNonceStr, { timeout: 10000 })
|
|
})
|
|
|
|
it('[SMOKE] Verify that "Replace" icon is visible', () => {
|
|
wallet.connectSigner(signer)
|
|
owner.verifyReplaceBtnIsEnabled()
|
|
})
|
|
|
|
it('[SMOKE] Verify owner replace button is disabled for Non-Owner', () => {
|
|
cy.visit(constants.setupUrl + staticSafes.SEP_STATIC_SAFE_3)
|
|
owner.verifyReplaceBtnIsDisabled()
|
|
})
|
|
|
|
it('[SMOKE] Verify that the owner replacement form is opened', () => {
|
|
wallet.connectSigner(signer)
|
|
owner.waitForConnectionStatus()
|
|
owner.openReplaceOwnerWindow(0)
|
|
})
|
|
})
|