mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* update-add-owner-tests * fix-add-owner-smoke * fixed for smoke add owner tests * update 'Verify error message displayed if character limit is exceeded in Name input' * remove unused functions * fixes for add-owner regression tests
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
import * as constants from '../../support/constants'
|
|
import * as owner from '../pages/owners.pages'
|
|
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
|
|
import * as wallet from '../../support/utils/wallet.js'
|
|
import { acceptCookies2, closeSecurityNotice } from '../pages/main.page.js'
|
|
|
|
let staticSafes = []
|
|
const walletCredentials = JSON.parse(Cypress.env('CYPRESS_WALLET_CREDENTIALS'))
|
|
const signer = walletCredentials.OWNER_4_PRIVATE_KEY
|
|
|
|
describe('[PROD] Add Owners tests', () => {
|
|
before(async () => {
|
|
staticSafes = await getSafes(CATEGORIES.static)
|
|
})
|
|
|
|
beforeEach(() => {
|
|
cy.visit(constants.prodbaseUrl + constants.setupUrl + staticSafes.SEP_STATIC_SAFE_4)
|
|
cy.contains(owner.safeAccountNonceStr, { timeout: 10000 })
|
|
closeSecurityNotice()
|
|
acceptCookies2()
|
|
})
|
|
|
|
it('Verify add owner button is disabled for disconnected user', () => {
|
|
owner.verifyManageSignersBtnIsDisabled()
|
|
})
|
|
|
|
it('Verify the Manage Signers Form can be opened', () => {
|
|
wallet.connectSigner(signer)
|
|
owner.openManageSignersWindow()
|
|
})
|
|
})
|