mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* fix: copilot tests: remove overlapping element * fix: tx_history_4 tests: adjust tests to the latest UI * fix: tx_history and tx_history_2 tests adjusted to the new ui * refactor: replace the data-fragile Cypress E2E with unit tests for the "Safe App tx shows icon + name" behavior * refactor: adjust Proposers test to the latest UI changes * refactor: adjust batch_tx tests to the latest ui changes * refactor: adjust safe creation tests to the latest ui changes * refactor: adjust tx creation tests to the latest ui changes * refactor: adjust multichain setup tests to the latest ui changes * fix: correct string text in the Proposers test * fix: swap link as per FF * fix: multichain creation (add a login step; block overlapping beamer) * chore: bring back the swap prod link * fix: relay test: use sepolia instead of polygon * fix: proposers test assertion * feat: harden the CF tests assertions to distinct newly created safes from existing in the space * fix: add missing login step to the Multichain Create Safe Flow tests * feat: add a page function to use the old UI * chore: remove obsolete healthcheck Cypress tests; adjust comments * fix: harden the token tests (get token name + value separately from a cell instead of full row); compare both * fix: adjust swap test with a blocked recipient to the cow widget changes * refactor: replace browser permission e2e tests with unit / component tests * fix: recovery tests: bypass Spaces login by setting a classic UI session storage key * fix: bring back the Custom Recipient logic for swap tests * fix: flaky multichain network tests
48 lines
2.0 KiB
JavaScript
48 lines
2.0 KiB
JavaScript
import * as constants from '../../support/constants.js'
|
|
import * as main from '../pages/main.page.js'
|
|
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
|
|
import * as wallet from '../../support/utils/wallet.js'
|
|
import * as createwallet from '../pages/create_wallet.pages'
|
|
import * as createtx from '../pages/create_tx.pages.js'
|
|
import * as tx from '../pages/transactions.page.js'
|
|
import * as owner from '../pages/owners.pages'
|
|
import * as navigation from '../pages/navigation.page.js'
|
|
|
|
let staticSafes = []
|
|
|
|
const walletCredentials = JSON.parse(Cypress.env('CYPRESS_WALLET_CREDENTIALS'))
|
|
const signer = walletCredentials.OWNER_4_PRIVATE_KEY
|
|
|
|
describe('Happy path Multichain safe creation tests', { defaultCommandTimeout: 60000 }, () => {
|
|
before(async () => {
|
|
staticSafes = await getSafes(CATEGORIES.static)
|
|
})
|
|
|
|
beforeEach(() => {
|
|
createwallet.startCreateSafeFlow(signer)
|
|
})
|
|
|
|
it('Verify that L2 safe created during multichain safe creation has 1.4.1 L2 contract after deployment', () => {
|
|
createwallet.clickOnNetwrokRemoveIcon()
|
|
createwallet.selectMultiNetwork(1, constants.networks.sepolia.toLowerCase())
|
|
createwallet.selectMultiNetwork(1, constants.networks.ethereum.toLowerCase())
|
|
createwallet.selectMultiNetwork(1, constants.networks.polygon.toLowerCase())
|
|
createwallet.clickOnYourSafeAccountPreview()
|
|
createwallet.clickOnNextBtn()
|
|
createwallet.clickOnNextBtn()
|
|
createwallet.clickOnSignInToWorkspaceBtn()
|
|
createwallet.clickOnReviewStepNextBtn()
|
|
createwallet.clickOnLetsGoBtn()
|
|
|
|
cy.url().then((currentUrl) => {
|
|
const safe = `sep:${main.getSafeAddressFromUrl(currentUrl)}`
|
|
createwallet.clickOnActivateAccountBtn(0)
|
|
createwallet.selectPayNowOption()
|
|
createwallet.clickOnFinalActivateAccountBtn()
|
|
createwallet.clickOnLetsGoBtn()
|
|
cy.visit(constants.setupUrl + safe)
|
|
main.verifyValuesExist(navigation.setupSection, [constants.safeContractVersions.v1_4_1_L2])
|
|
})
|
|
})
|
|
})
|