Skip to content

Commit

Permalink
Rm the connectE2EWallet command
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Aug 1, 2023
1 parent 16a4843 commit 187bcc8
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 25 deletions.
2 changes: 0 additions & 2 deletions cypress/e2e/add_owner.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const offset = 7

describe('Adding an owner', () => {
before(() => {
cy.connectE2EWallet()

cy.visit(`/${TEST_SAFE}/settings/setup`)
cy.contains('button', 'Accept selection').click()

Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/create_safe.cy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
describe('Create Safe', () => {
it('should create a new Safe', () => {
cy.connectE2EWallet()

cy.visit('/welcome')

// Close cookie banner
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/non_owner_spending_limit.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ const SPENDING_LIMIT_SAFE = 'gor:0xBE3C5aFF7f66c23fe71c3047911f9Aa0026b281B'

describe('Check non-owner spending limit beneficiary modal', () => {
before(() => {
cy.connectE2EWallet()

cy.visit(`/${SPENDING_LIMIT_SAFE}/home`, { failOnStatusCode: false })

cy.contains('Accept selection').click()
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/smoke/create_safe_simple.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ const OWNER_ADDRESS = '0xE297437d6b53890cbf004e401F3acc67c8b39665'

describe('Create Safe form', () => {
it('should navigate to the form', () => {
cy.connectE2EWallet()

cy.visit('/welcome')

// Close cookie banner
Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/smoke/create_tx.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const currentNonce = 3

describe('Queue a transaction on 1/N', () => {
before(() => {
cy.connectE2EWallet()
cy.useProdCGW()

cy.visit(`/home?safe=${SAFE}`)
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/smoke/nfts.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ const TEST_SAFE = 'gor:0x97d314157727D517A706B5D08507A1f9B44AaaE9'

describe('Assets > NFTs', () => {
before(() => {
cy.connectE2EWallet()

cy.visit(`/balances/nfts?safe=${TEST_SAFE}`)
cy.contains('button', 'Accept selection').click()
cy.contains(/E2E Wallet @ G(ö|oe)rli/)
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/smoke/pending_actions.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ const SAFE = 'gor:0xCD4FddB8FfA90012DFE11eD4bf258861204FeEAE'

describe('Pending actions', () => {
before(() => {
cy.connectE2EWallet()
cy.useProdCGW()

cy.visit(`/welcome`)
cy.contains('button', 'Accept selection').click()
})
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/spending_limit.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ const SPENDING_LIMIT_SAFE = 'gor:0x28F95E682D1dd632b54Dc61740575f49DB39Eb7F'

describe('Check spending limit modal', () => {
before(() => {
cy.connectE2EWallet()

cy.visit(`/${SPENDING_LIMIT_SAFE}/home`, { failOnStatusCode: false })

cy.contains('Accept selection').click()
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/tx_modal.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ const SAFE_NONCE = '6'

describe('Tx Modal', () => {
before(() => {
cy.connectE2EWallet()

// Open the Safe used for testing
cy.visit(`/${TEST_SAFE}`)
cy.contains('a', 'Accept selection').click()
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/tx_simulation.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ const RECIPIENT_ADDRESS = '0x6a5602335a878ADDCa4BF63a050E34946B56B5bC'

describe('Tx Simulation', () => {
before(() => {
cy.connectE2EWallet()

// Open the Safe used for testing
cy.visit(`/${TEST_SAFE}/home`, { failOnStatusCode: false })
cy.contains('button', 'Accept selection').click()
Expand Down
6 changes: 0 additions & 6 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
Cypress.Commands.add('connectE2EWallet', () => {
cy.on('window:before:load', (window) => {
// @FIXME
})
})

Cypress.Commands.add('useProdCGW', () => {
cy.on('window:before:load', (window) => {
window.localStorage.setItem('SAFE_v2__debugProdCgw', JSON.stringify(true))
Expand Down

0 comments on commit 187bcc8

Please sign in to comment.