Commit 41d97641 authored by ioedeveloper's avatar ioedeveloper Committed by Aniket

Fix transaction details click

parent 5af67ec8
...@@ -753,6 +753,6 @@ function domTerminalFeatures (self, scopedCommands, blockchain) { ...@@ -753,6 +753,6 @@ function domTerminalFeatures (self, scopedCommands, blockchain) {
} }
} }
function blockify (el) { return yo`<div class="px-4 ${css.block}">${el}</div>` } function blockify (el) { return yo`<div class="px-4 ${css.block}" data-id="block_${el.getAttribute ? el.getAttribute('id') : ''}">${el}</div>` }
module.exports = Terminal module.exports = Terminal
...@@ -8,10 +8,8 @@ class TestFunction extends EventEmitter { ...@@ -8,10 +8,8 @@ class TestFunction extends EventEmitter {
const setLog = (index, value) => { logs[Object.keys(logs)[index]] = typeof value === 'string' ? value.trim() : value } const setLog = (index, value) => { logs[Object.keys(logs)[index]] = typeof value === 'string' ? value.trim() : value }
browser browser
.waitForElementVisible(`*[data-id="terminalContainer"]`) .waitForElementVisible(`[data-id="block_tx${txHash}"]`)
.click(`*[data-id="terminalContainer"]`) .click(`[data-id="block_tx${txHash}"]`)
.waitForElementVisible(`*[data-id="txLogger${txHash}"]`)
.click(`*[data-id="txLogger${txHash}"]`)
.waitForElementVisible(`*[data-id="txLoggerTable${txHash}"]`) .waitForElementVisible(`*[data-id="txLoggerTable${txHash}"]`)
// fetch and format transaction logs as key => pair object // fetch and format transaction logs as key => pair object
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment