Files
Liliya SorokaandGitHub 7f8b48fd18 Web(e2e): update regression e2e tests according to the latest changed for web (#6771)
* tests(e2e): update hidden tokens tests

* tests(e2e): default tokens set up for nested safes tests

* tests(e2e): update swap tokens tests

* tests(e2e): update notifications and proposers tests

* tests(e2e): new main function and small fixes

* tests(e2e): add ls set up for nested safe creation tests

* tests(e2e): fixComments

* tests(e2e): fix for smoke test with image

* tests(e2e): remove logo check

* tests(e2e): fixe for the image

* tests(e2e): update verifySummaryByName function

* tests(e2e): update verifyTokenSymbol function to more general solution

* tests(e2e): remove Perl from new endpoints test

* tests(e2e): removed unused test and update hidentoken function

* tests(e2e): update create tx functions and fix create_tx_2 test

* tests(e2e): update selector for the logos

* tests(e2e): update number of button and list of pages
2025-12-04 12:18:58 +01:00

57 lines
1.8 KiB
JavaScript

import * as constants from '../../support/constants'
import * as assets from '../pages/assets.pages'
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
import * as wallet from '../../support/utils/wallet.js'
import * as main from '../pages/main.page'
let staticSafes = []
const walletCredentials = JSON.parse(Cypress.env('CYPRESS_WALLET_CREDENTIALS'))
const signer = walletCredentials.OWNER_4_PRIVATE_KEY
describe('Assets tests', () => {
before(async () => {
staticSafes = await getSafes(CATEGORIES.static)
})
beforeEach(() => {
cy.visit(constants.BALANCE_URL + staticSafes.SEP_STATIC_SAFE_2)
})
it('Verify that "Hide token" button is present and opens the "Hide tokens menu"', () => {
assets.toggleShowAllTokens(true)
assets.toggleHideDust(false)
assets.openHiddenTokensFromManageMenu()
assets.verifyEachRowHasCheckbox()
})
it('Verify that clicking the button with an owner opens the Send funds form', () => {
wallet.connectSigner(signer)
assets.toggleShowAllTokens(true)
assets.toggleHideDust(false)
cy.wait(2000)
assets.clickOnSendBtnAssetsTable(0)
})
it('Verify that Token list dropdown shows options "Default tokens" and "All tokens"', () => {
let spamTokens = [
assets.currencyAave,
assets.currencyTestTokenA,
assets.currencyTestTokenB,
assets.currencyUSDC,
assets.currencyLink,
assets.currencyDaiCap,
]
assets.toggleShowAllTokens(false)
assets.toggleHideDust(false)
main.verifyValuesExist(assets.tokenListTable, [constants.tokenNames.sepoliaEther])
main.verifyValuesDoNotExist(assets.tokenListTable, spamTokens)
assets.toggleShowAllTokens(true)
assets.toggleHideDust(false)
spamTokens.push(constants.tokenNames.sepoliaEther)
main.verifyValuesExist(assets.tokenListTable, spamTokens)
})
})