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

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