Files
Liliya SorokaandGitHub 7f8b48fd18 Web(e2e): update regression e2e tests according to the latest changed for web (#6771)
* tests(e2e): update hidden tokens tests

* tests(e2e): default tokens set up for nested safes tests

* tests(e2e): update swap tokens tests

* tests(e2e): update notifications and proposers tests

* tests(e2e): new main function and small fixes

* tests(e2e): add ls set up for nested safe creation tests

* tests(e2e): fixComments

* tests(e2e): fix for smoke test with image

* tests(e2e): remove logo check

* tests(e2e): fixe for the image

* tests(e2e): update verifySummaryByName function

* tests(e2e): update verifyTokenSymbol function to more general solution

* tests(e2e): remove Perl from new endpoints test

* tests(e2e): removed unused test and update hidentoken function

* tests(e2e): update create tx functions and fix create_tx_2 test

* tests(e2e): update selector for the logos

* tests(e2e): update number of button and list of pages
2025-12-04 12:18:58 +01:00

64 lines
2.0 KiB
JavaScript

import * as constants from '../../support/constants.js'
import * as createtx from '../pages/create_tx.pages.js'
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
import * as wallet from '../../support/utils/wallet.js'
let staticSafes = []
const sendValue = 0.00002
const walletCredentials = JSON.parse(Cypress.env('CYPRESS_WALLET_CREDENTIALS'))
const signer = walletCredentials.OWNER_4_PRIVATE_KEY
function happyPathToStepTwo() {
createtx.typeRecipientAddress(constants.EOA)
createtx.clickOnTokenselectorAndSelectSepoliaEth()
createtx.setSendValue(sendValue)
createtx.clickOnNextBtn()
}
describe('Create transactions tests 2', () => {
before(async () => {
staticSafes = await getSafes(CATEGORIES.static)
})
beforeEach(() => {
cy.visit(constants.BALANCE_URL + staticSafes.SEP_STATIC_SAFE_6)
wallet.connectSigner(signer)
createtx.clickOnNewtransactionBtn()
createtx.clickOnSendTokensBtn()
})
it('Verify advance parameters are saved after editing', () => {
happyPathToStepTwo()
createtx.changeNonce('5')
createtx.clickOnContinueSignTransactionBtn()
createtx.selectComboButtonOption('execute')
createtx.selectCurrentWallet()
createtx.openExecutionParamsModal()
createtx.setAdvancedExecutionParams()
createtx.displayAdvancedDetails()
createtx.verifyEditedExcutionParams()
})
it('Verify advance parameters gas limit input', () => {
happyPathToStepTwo()
createtx.changeNonce('5')
createtx.clickOnContinueSignTransactionBtn()
createtx.selectComboButtonOption('execute')
createtx.selectCurrentWallet()
createtx.openExecutionParamsModal()
createtx.verifyAndSubmitExecutionParams()
})
it('Verify a transaction shows relayer attempts', () => {
happyPathToStepTwo()
createtx.verifyContinueSignBtnIsEnabled()
createtx.verifyNativeTokenTransfer()
createtx.changeNonce('5')
createtx.clickOnContinueSignTransactionBtn()
createtx.selectComboButtonOption('execute')
createtx.verifyRelayerAttemptsAvailable()
})
})