mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* fix(e2e): check wc on accounts instead of welcome page * fix(e2e): replace Error check by Badge check for untrusted fallback * fix(e2e): fix 2 tests and assets.page refactoring * fix(e2e): remove only
20 lines
640 B
JavaScript
20 lines
640 B
JavaScript
import * as constants from '../../support/constants.js'
|
|
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
|
|
import * as wc from '../pages/walletconnect.page.js'
|
|
import * as main from '../pages/main.page.js'
|
|
|
|
let staticSafes = []
|
|
|
|
describe('Walletconnect tests', () => {
|
|
before(async () => {
|
|
staticSafes = await getSafes(CATEGORIES.static)
|
|
})
|
|
|
|
it('Verify that connection via WC is not allowed when no selected safe in URL', () => {
|
|
cy.visit('/' + constants.welcomeAccountUrl)
|
|
wc.clickOnWCBtn()
|
|
cy.contains(wc.connectWCStr).should('be.visible')
|
|
main.verifyElementsCount(wc.wcInput, 0)
|
|
})
|
|
})
|