Skip to content

Commit

Permalink
test: Update dashboard smoke e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Feb 8, 2024
1 parent 5e161db commit 857c394
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cypress/e2e/pages/dashboard.pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as constants from '../../support/constants'
const connectAndTransactStr = 'Connect & transact'
const transactionQueueStr = 'Pending transactions'
const noTransactionStr = 'This Safe has no queued transactions'
const overviewStr = 'Overview'
const overviewStr = 'Total asset value'
const sendStr = 'Send'
const receiveStr = 'Receive'
const viewAllStr = 'View all'
Expand All @@ -20,12 +20,10 @@ export function verifyConnectTransactStrIsVisible() {

export function verifyOverviewWidgetData() {
// Alias for the Overview section
cy.contains('h2', overviewStr).parents('section').as('overviewSection')
cy.contains('div', overviewStr).parents('section').as('overviewSection')

cy.get('@overviewSection').within(() => {
// Prefix is separated across elements in EthHashInfo
cy.get('h2').contains('Overview')
cy.get(`a[href="${constants.BALANCE_URL}${encodeURIComponent(constants.SEPOLIA_TEST_SAFE_5)}"]`).contains('Tokens')
cy.get('button').contains(sendStr)
cy.get('button').contains(receiveStr)
})
Expand Down

0 comments on commit 857c394

Please sign in to comment.