Files
Liliya SorokaandGitHub 1b0244a3a4 Fix(Tests): Update add-owners tests because of new manage signers flow (#5939)
* 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
2025-05-28 10:40:55 +02:00

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()
})
})