mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* Improve test organization * Add reload action to trigger local storage changes in ci * Update swap string
36 lines
1.5 KiB
JavaScript
36 lines
1.5 KiB
JavaScript
import * as constants from '../../support/constants.js'
|
|
import * as createTx from '../pages/create_tx.pages.js'
|
|
import * as data from '../../fixtures/txhistory_data_data.json'
|
|
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
|
|
import * as main from '../pages/main.page.js'
|
|
|
|
let staticSafes = []
|
|
|
|
const typeSend = data.type.send
|
|
const typeGeneral = data.type.general
|
|
const typeUntrustedToken = data.type.untrustedReceivedToken
|
|
|
|
const safe = 'sep:0x8f4A19C85b39032A37f7a6dCc65234f966F72551'
|
|
const txbuilder =
|
|
'&id=multisig_0x8f4A19C85b39032A37f7a6dCc65234f966F72551_0x97d4c1b3149853c0d8ca71bd700faae628f0a833bdb4bd9c6b14c171117703d4'
|
|
|
|
describe('Safe app tx history tests', () => {
|
|
before(async () => {
|
|
staticSafes = await getSafes(CATEGORIES.static)
|
|
})
|
|
|
|
it('Verify tx builder has icon and app name', () => {
|
|
cy.visit(constants.transactionUrl + safe + txbuilder)
|
|
createTx.verifySummaryByName(typeSend.txBuilderTitle, null, [typeGeneral.statusOk], typeSend.txBuilderAltImage)
|
|
main.verifyValuesExist(createTx.transactionItem, [typeSend.txBuilderTitle])
|
|
})
|
|
|
|
it('Verify that copying sender address of untrusted token shows warning popup', () => {
|
|
cy.visit(constants.transactionsHistoryUrl + staticSafes.SEP_STATIC_SAFE_7)
|
|
createTx.toggleUntrustedTxs()
|
|
createTx.clickOnTransactionItemByName(typeUntrustedToken.summaryTitle, typeUntrustedToken.summaryTxInfo)
|
|
createTx.clickOnCopyBtn(0)
|
|
createTx.verifyWarningModalVisible()
|
|
})
|
|
})
|