mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* 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
46 lines
1.3 KiB
JavaScript
46 lines
1.3 KiB
JavaScript
import * as constants from '../../support/constants.js'
|
|
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
|
|
import * as header from '../pages/header.page.js'
|
|
import * as notifications from '../pages/notifications.page.js'
|
|
|
|
let staticSafes = []
|
|
|
|
describe('Notifications UI tests', () => {
|
|
before(async () => {
|
|
staticSafes = await getSafes(CATEGORIES.static)
|
|
})
|
|
|
|
const views = [
|
|
constants.BALANCE_URL,
|
|
constants.setupUrl,
|
|
constants.swapUrl,
|
|
constants.createNewSafeSepoliaUrl,
|
|
constants.loadNewSafeSepoliaUrl,
|
|
constants.transactionUrl,
|
|
constants.transactionsHistoryUrl,
|
|
constants.securityUrl,
|
|
constants.homeUrl,
|
|
|
|
constants.balanceNftsUrl,
|
|
constants.welcomeAccountsSepoliaUrl,
|
|
constants.addressBookUrl,
|
|
constants.appsUrlGeneral,
|
|
constants.transactionQueueUrl,
|
|
constants.transactionsMessagesUrl,
|
|
constants.modulesUrl,
|
|
constants.appsCustomUrl,
|
|
constants.securityUrl,
|
|
constants.appearanceSettingsUrl,
|
|
constants.dataSettingsUrl,
|
|
constants.notificationsUrl,
|
|
]
|
|
|
|
views.forEach((link) => {
|
|
it(`Verify clicking on notifications center opens notifications modal in view: ${link}`, () => {
|
|
cy.visit(link + staticSafes.SEP_STATIC_SAFE_4)
|
|
header.openNotificationCenter()
|
|
notifications.checkCoreElementsVisible()
|
|
})
|
|
})
|
|
})
|