Skip to content

Commit

Permalink
Rm e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Sep 25, 2024
1 parent 3ca8ffd commit 632ba4b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
23 changes: 0 additions & 23 deletions cypress/e2e/pages/dashboard.pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,16 @@ import * as main from './main.page.js'
import * as createtx from './create_tx.pages.js'
import staticSafes from '../../fixtures/safes/static.json'

const connectAndTransactStr = 'Connect & transact'
const transactionQueueStr = 'Pending transactions'
const noTransactionStr = 'This Safe has no queued transactions'
const overviewStr = 'Total asset value'
const sendStr = 'Send'
const receiveStr = 'Receive'
const viewAllStr = 'View all'
const transactionBuilderStr = 'Use Transaction Builder'
const safeAppStr = 'Safe Apps'
const exploreSafeApps = 'Explore Safe Apps'
export const copiedAppUrl = 'share/safe-app?appUrl'

const txBuilder = 'a[href*="tx-builder"]'
const safeSpecificLink = 'a[href*="&appUrl=http"]'
const copyShareBtn = '[data-testid="copy-btn-icon"]'
const exploreAppsBtn = '[data-testid="explore-apps-btn"]'
const viewAllLink = '[data-testid="view-all-link"][href^="/transactions/queue"]'
Expand Down Expand Up @@ -108,10 +104,6 @@ export function verifyShareBtnWorks(index, data) {
)
}

export function verifyConnectTransactStrIsVisible() {
cy.contains(connectAndTransactStr).should('be.visible')
}

export function verifyOverviewWidgetData() {
// Alias for the Overview section
cy.contains('div', overviewStr).parents('section').as('overviewSection')
Expand Down Expand Up @@ -144,21 +136,6 @@ export function verifyTxQueueWidget() {
})
}

export function verifyFeaturedAppsSection() {
// Alias for the featured Safe Apps section
cy.contains('h2', connectAndTransactStr).parents('section').as('featuredSafeAppsSection')

// Tx Builder app
cy.get('@featuredSafeAppsSection').within(() => {
// Transaction Builder
cy.contains(transactionBuilderStr)
cy.get(txBuilder).should('exist')

// Featured apps have a Safe-specific link
cy.get(safeSpecificLink).should('have.length', 1)
})
}

export function verifySafeAppsSection() {
cy.contains('h2', safeAppStr).parents('section').as('safeAppsSection')
cy.get('@safeAppsSection').contains(exploreSafeApps)
Expand Down
5 changes: 0 additions & 5 deletions cypress/e2e/smoke/dashboard.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ describe('[SMOKE] Dashboard tests', { defaultCommandTimeout: 20000 }, () => {
cy.clearLocalStorage()
cy.visit(constants.homeUrl + staticSafes.SEP_STATIC_SAFE_2)
main.acceptCookies()
dashboard.verifyConnectTransactStrIsVisible()
})

it('[SMOKE] Verify the overview widget is displayed', () => {
Expand All @@ -32,10 +31,6 @@ describe('[SMOKE] Dashboard tests', { defaultCommandTimeout: 20000 }, () => {
dashboard.verifyTxQueueWidget()
})

it('[SMOKE] Verify the featured Safe Apps are displayed', () => {
dashboard.verifyFeaturedAppsSection()
})

it('[SMOKE] Verify the Safe Apps Section is displayed', () => {
dashboard.verifySafeAppsSection()
})
Expand Down

0 comments on commit 632ba4b

Please sign in to comment.