Skip to content

Commit

Permalink
Update test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mike10ca committed Sep 9, 2024
1 parent 6617d1b commit e926f6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cypress/e2e/pages/create_tx.pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,13 +484,10 @@ export function openExecutionParamsModal() {

export function verifyAndSubmitExecutionParams() {
cy.contains(executionParamsStr).parents('form').as('Paramsform')

//TODO: Not a hard requirement for check. Will comback to this after clarification

// const arrayNames = ['Wallet nonce', 'Max priority fee (Gwei)', 'Max fee (Gwei)', 'Gas limit']
// arrayNames.forEach((element) => {
// cy.get('@Paramsform').find('label').contains(`${element}`).next().find('input').should('not.be.disabled')
// })
const arrayNames = ['Wallet nonce', 'Max priority fee (Gwei)', 'Max fee (Gwei)', 'Gas limit']
arrayNames.forEach((element) => {
cy.get('@Paramsform').find('label').contains(`${element}`).next().find('input').should('not.be.disabled')
})

cy.get('@Paramsform').find(gasLimitInput).clear().type('100').invoke('prop', 'value').should('equal', '100')
cy.contains('Gas limit must be at least 21000').should('be.visible')
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/smoke/create_tx_2.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('[SMOKE] Create transactions tests 2', () => {
it('[SMOKE] Verify advance parameters gas limit input', () => {
happyPathToStepTwo()
createtx.changeNonce('1')
createtx.selectCurrentWallet()
createtx.openExecutionParamsModal()
createtx.verifyAndSubmitExecutionParams()
})
Expand Down

0 comments on commit e926f6a

Please sign in to comment.