Skip to content

Commit

Permalink
Update test IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
mike10ca committed Nov 9, 2023
1 parent 7c8b9e3 commit 1ea1877
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/safe-apps/apps_list.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as safeapps from '../pages/safeapps.pages'
const myCustomAppTitle = 'Cypress Test App'
const myCustomAppDescrAdded = 'Cypress Test App Description'

describe('Safe Apps tests', () => {
describe('Safe Apps list tests', () => {
beforeEach(() => {
cy.clearLocalStorage()
cy.visit(constants.SEPOLIA_TEST_SAFE_4 + constants.appsUrl, { failOnStatusCode: false })
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/safe-apps/drain_account.spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as constants from '../../support/constants'
import * as main from '../pages/main.page'
import * as safeapps from '../pages/safeapps.pages'

describe('Drain Account Safe App tests', { defaultCommandTimeout: 12000 }, () => {
describe('Drain Account tests', { defaultCommandTimeout: 12000 }, () => {
const appUrl = constants.drainAccount_url
const iframeSelector = `iframe[id="iframe-${appUrl}"]`
const visitUrl = `/apps/open?safe=${constants.GOERLI_SAFE_APPS_SAFE}&appUrl=${encodeURIComponent(appUrl)}`
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/safe-apps/info_modal.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as constants from '../../support/constants'
import * as main from '../pages/main.page'
import * as safeapps from '../pages/safeapps.pages'

describe('Safe Apps info modal tests', () => {
describe('Info modal tests', () => {
beforeEach(() => {
cy.clearLocalStorage()
cy.visit(constants.SEPOLIA_TEST_SAFE_5 + constants.appsUrl, { failOnStatusCode: false })
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/safe-apps/permissions_settings.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let $dapps = []
const app1 = 'https://app1.com'
const app3 = 'https://app3.com'

describe('Safe Apps permissions settings tests', () => {
describe('Permissions settings tests', () => {
before(() => {
cy.clearLocalStorage()
cy.on('window:before:load', (window) => {
Expand Down Expand Up @@ -53,7 +53,7 @@ describe('Safe Apps permissions settings tests', () => {
cy.findAllByRole('heading', { level: 5 }).should('have.length', 4)
})

describe('Permissions for each app', () => {
describe('Permissions for each Safe app', () => {
before(() => {
cy.get(safeapps.gridItem).then((items) => {
$dapps = items
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/safe-apps/preview_drawer.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as constants from '../../support/constants'
import * as main from '../pages/main.page'
import * as safeapps from '../pages/safeapps.pages'

describe('Safe Apps info modal tests', () => {
describe('Preview drawer tests', () => {
beforeEach(() => {
cy.clearLocalStorage()
cy.visit(`/${constants.SEPOLIA_TEST_SAFE_5}/apps`, { failOnStatusCode: false })
Expand Down
38 changes: 19 additions & 19 deletions cypress/e2e/safe-apps/tx-builder.spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as constants from '../../support/constants'
import * as main from '../pages/main.page'
import * as safeapps from '../pages/safeapps.pages'

describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
describe('Transaction Builder tests', { defaultCommandTimeout: 20000 }, () => {
const appUrl = constants.TX_Builder_url
const iframeSelector = `iframe[id="iframe-${appUrl}"]`
const visitUrl = `/apps/open?safe=${constants.GOERLI_SAFE_APPS_SAFE}&appUrl=${encodeURIComponent(appUrl)}`
Expand All @@ -14,7 +14,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
safeapps.clickOnContinueBtn()
})

it('Verify a simple batch can be created [C56609]', () => {
it('Verify a simple batch can be created', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.SAFE_APP_ADDRESS)
getBody().find(safeapps.contractMethodIndex).parent().click()
Expand All @@ -32,7 +32,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
cy.findAllByText(constants.SAFE_APP_ADDRESS_2_SHORT).should('have.length', 1)
})

it('Verify a complex batch can be created [C56610]', () => {
it('Verify a complex batch can be created', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.SAFE_APP_ADDRESS)
getBody().find(safeapps.contractMethodIndex).parent().click()
Expand All @@ -54,7 +54,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
cy.findAllByText('True').should('have.length', 3)
})

it('Verify a batch can be created using ENS name [C56611]', () => {
it('Verify a batch can be created using ENS name', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.ENS_TEST_GOERLI)
getBody().findByRole('button', { name: safeapps.useImplementationABI }).click()
Expand All @@ -72,7 +72,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
cy.findByText(safeapps.thresholdStr2).should('exist')
})

it('Verify a batch can be created from an ABI [C56612]', () => {
it('Verify a batch can be created from an ABI', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterABIStr).type(safeapps.abi)
getBody().findByLabelText(safeapps.toAddressStr).type(constants.SAFE_APP_ADDRESS_2)
Expand All @@ -85,7 +85,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
cy.findByText(constants.SAFE_APP_ADDRESS_2).should('be.visible')
})

it('Verify a batch with custom data can be created [C56613]', () => {
it('Verify a batch with custom data can be created', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().find('.MuiSwitch-root').click()
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.SAFE_APP_ADDRESS_3)
Expand All @@ -99,7 +99,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
cy.findByText(constants.SAFE_APP_ADDRESS_3).should('be.visible')
})

it('Verify a batch can be cancelled [C56614]', () => {
it('Verify a batch can be cancelled', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.SAFE_APP_ADDRESS)
getBody().find(safeapps.contractMethodIndex).parent().click()
Expand All @@ -114,7 +114,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
})
})

it('Verify cancel operation can be reverted [C56615]', () => {
it('Verify cancel operation can be reverted', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.SAFE_APP_ADDRESS)
getBody().find(safeapps.contractMethodIndex).parent().click()
Expand All @@ -129,7 +129,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
})
})

it('Verify it is allowed to go back without removing data and add more transactions to the batch [C56616]', () => {
it('Verify it is allowed to go back without removing data and add more transactions to the batch', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.SAFE_APP_ADDRESS)
getBody().find(safeapps.contractMethodIndex).parent().click()
Expand All @@ -150,30 +150,30 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
cy.get('p').contains('2').should('be.visible')
})

it('Verify a batch cannot be created with invalid address [C56617]', () => {
it('Verify a batch cannot be created with invalid address', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.SAFE_APP_ADDRESS_3)
getBody().findAllByText(safeapps.addressNotValidStr).should('have.css', 'color', 'rgb(244, 67, 54)')
})
})

it('Verify a batch cannot be created without asset amount [C56618]', () => {
it('Verify a batch cannot be created without asset amount', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.SAFE_APP_ADDRESS_3)
getBody().findByText(safeapps.addTransactionStr).click()
getBody().findAllByText(safeapps.requiredStr).should('have.css', 'color', 'rgb(244, 67, 54)')
})
})

it('Verify a batch cannot be created without method data [C56619]', () => {
it('Verify a batch cannot be created without method data', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.SAFE_APP_ADDRESS_2)
getBody().findByText(safeapps.addTransactionStr).click()
getBody().findAllByText(safeapps.requiredStr).should('have.css', 'color', 'rgb(244, 67, 54)')
})
})

it('Verify a batch can be uploaded, saved, downloaded and removed [C56620]', () => {
it('Verify a batch can be uploaded, saved, downloaded and removed', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findAllByText('choose a file').attachFile('test-working-batch.json', { subjectType: 'drag-n-drop' })
getBody().findAllByText('uploaded').wait(300)
Expand All @@ -190,23 +190,23 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
cy.readFile('cypress/downloads/E2E test.json').should('exist')
})

it('Verify there is notification if uploaded batch is from a different chain [C56621]', () => {
it('Verify there is notification if uploaded batch is from a different chain', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findAllByText('choose a file').attachFile('test-mainnet-batch.json', { subjectType: 'drag-n-drop' })
getBody().findAllByText(safeapps.warningStr).should('be.visible')
getBody().findAllByText(safeapps.anotherChainStr).should('be.visible')
})
})

it('Verify there is error message when a modified batch is uploaded [C56622]', () => {
it('Verify there is error message when a modified batch is uploaded', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findAllByText('choose a file').attachFile('test-modified-batch.json', { subjectType: 'drag-n-drop' })
getBody().findAllByText(safeapps.changedPropertiesStr)
getBody().findAllByText('choose a file').should('be.visible')
})
})

it('Verify an invalid batch cannot be uploaded [C56623]', () => {
it('Verify an invalid batch cannot be uploaded', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody()
.findAllByText('choose a file')
Expand All @@ -216,7 +216,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
})
})

it('Verify an empty batch cannot be uploaded [C56624]', () => {
it('Verify an empty batch cannot be uploaded', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody()
.findAllByText('choose a file')
Expand All @@ -226,7 +226,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
})
})

it('Verify a valid batch as successful can be simulated [C56625]', () => {
it('Verify a valid batch as successful can be simulated', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.SAFE_APP_ADDRESS_3)
getBody().findByLabelText(safeapps.gorValue).type('0')
Expand All @@ -238,7 +238,7 @@ describe('Tx-builder Safe App tests', { defaultCommandTimeout: 20000 }, () => {
})
})

it('Verify an invalid batch as failed can be simulated [C56626]', () => {
it('Verify an invalid batch as failed can be simulated', () => {
cy.enter(iframeSelector).then((getBody) => {
getBody().findByLabelText(safeapps.enterAddressStr).type(constants.TEST_SAFE_2)
getBody().findByText(safeapps.keepProxiABIStr).click()
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/safe-apps/tx_modal.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('Transaction modal tests', () => {
})

it(
'Verify that the transaction popup is displayed when sending a transaction from an app ',
'Verify that the transaction popup is displayed when sending a transaction from an app [C56747]',
{ defaultCommandTimeout: 12000 },
() => {
cy.visitSafeApp(`${constants.testAppUrl}/dummy`)
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/smoke/pending_actions.cy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as constants from '../../support/constants'
import * as safe from '../pages/load_safe.pages'

describe('Pending actions', () => {
describe('Pending actions tests', () => {
before(() => {
cy.visit(constants.welcomeUrl)
// main.acceptCookies()
Expand Down

0 comments on commit 1ea1877

Please sign in to comment.