Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mike10ca committed Oct 8, 2024
1 parent fad8a69 commit db0a9db
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/pages/assets.pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ export function checkHiddenTokenBtnCounter(value) {
}

export function verifyEachRowHasCheckbox(state) {
const tokens = [currencyTestTokenB, currencyTestTokenA]
main.verifyTextVisibility(tokens)
cy.get(tokenListTable).within(() => {
cy.get('tbody').within(() => {
cy.get('tr').each(($row) => {
Expand Down
4 changes: 0 additions & 4 deletions cypress/e2e/regression/create_safe_cf.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ describe('CF Safe regression tests', () => {
it('Verify "Custom transaction" takes to the tx builder app ', () => {
const iframeSelector = `iframe[id="iframe-${constants.TX_Builder_url}"]`
main.addToLocalStorage(constants.localStorageKeys.SAFE_v2__undeployedSafes, ls.undeployedSafe.safe1)
main.addToLocalStorage(
constants.localStorageKeys.SAFE_v2__SafeApps__infoModal,
ls.appPermissions(constants.safeTestAppurl).infoModalAccepted,
)
cy.reload()
wallet.connectSigner(signer)
owner.waitForConnectionStatus()
Expand Down
9 changes: 1 addition & 8 deletions cypress/e2e/regression/messages_popup.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ describe('Messages popup window tests', () => {
constants.localStorageKeys.SAFE_v2__SafeApps__browserPermissions,
ls.appPermissions(constants.safeTestAppurl).grantedPermissions,
)
main.addToLocalStorage(
constants.localStorageKeys.SAFE_v2__SafeApps__infoModal,
ls.appPermissions(constants.safeTestAppurl).infoModalAccepted,
)
cy.reload()
apps.clickOnApp(safeApp)
apps.clickOnOpenSafeAppBtn()
Expand All @@ -54,10 +50,7 @@ describe('Messages popup window tests', () => {
constants.localStorageKeys.SAFE_v2__SafeApps__browserPermissions,
ls.appPermissions(constants.safeTestAppurl).grantedPermissions,
)
main.addToLocalStorage(
constants.localStorageKeys.SAFE_v2__SafeApps__infoModal,
ls.appPermissions(constants.safeTestAppurl).infoModalAccepted,
)

cy.reload()
apps.clickOnApp(safeApp)
apps.clickOnOpenSafeAppBtn()
Expand Down
6 changes: 6 additions & 0 deletions cypress/e2e/safe-apps/info_modal.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ describe('Info modal tests', () => {
})

it('Verify the disclaimer is displayed when a Safe App is opened', () => {
// Required to show disclaimer
cy.clearLocalStorage()
main.acceptCookies()
safeapps.clickOnApp(safeapps.transactionBuilderStr)
safeapps.clickOnOpenSafeAppBtn()
safeapps.verifyDisclaimerIsDisplayed()
})

it('Verify info modal consent is stored when accepted', { defaultCommandTimeout: 20000 }, () => {
// Required to show disclaimer
cy.clearLocalStorage()
main.acceptCookies()
safeapps.clickOnApp(safeapps.transactionBuilderStr)
safeapps.clickOnOpenSafeAppBtn()
safeapps.verifyDisclaimerIsDisplayed()
Expand Down
3 changes: 3 additions & 0 deletions cypress/e2e/smoke/create_safe_cf.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const signer = walletCredentials.OWNER_2_PRIVATE_KEY
describe('[SMOKE] CF Safe creation tests', () => {
beforeEach(() => {
cy.visit(constants.welcomeUrl + '?chain=sep')
// Required for data layer
cy.clearLocalStorage()
main.acceptCookies()
getEvents()
})

Expand Down

0 comments on commit db0a9db

Please sign in to comment.