fix e2e tests

pull/5370/head
Joseph Izang 2 years ago
parent f46e379861
commit b1918aaf00
  1. 6
      apps/remix-ide-e2e/src/tests/debugger.test.ts
  2. 2
      libs/remix-ui/debugger-ui/src/lib/button-navigator/button-navigator.tsx
  3. 2
      libs/remix-ui/debugger-ui/src/lib/tx-browser/tx-browser.tsx

@ -191,14 +191,14 @@ module.exports = {
.clickFunction('f - transact (not payable)', { types: 'uint256[] ', values: '[]' })
.debugTransaction(0)
.pause(2000)
.click('*[data-id="debuggerTransactionStartButton"]') // stop debugging
.click('*[id="debuggerTransactionStartButtonContainer"]') // stop debugging
.click('*[data-id="debugGeneratedSourcesLabel"]') // select debug with generated sources
.click('*[data-id="debuggerTransactionStartButton"]') // start debugging
.click('*[id="debuggerTransactionStartButtonContainer"]') // start debugging
.pause(2000)
.getEditorValue((content) => {
browser.assert.ok(content.indexOf('if slt(sub(dataEnd, headStart), 32)') !== -1, 'current displayed content is not a generated source')
})
.click('*[data-id="debuggerTransactionStartButton"]')
.click('*[id="debuggerTransactionStartButtonContainer"]')
},
// depends on Should debug using generated sources
'Should call the debugger api: getTrace #group4': function (browser: NightwatchBrowser) {

@ -123,7 +123,7 @@ export const ButtonNavigation = ({ stepOverBack, stepIntoBack, stepIntoForward,
</Tooltip>
}
>
<div onClick={() => { jumpPreviousBreakpoint && jumpPreviousBreakpoint() }}>
<div id="buttonNavigatorJumpPreviousBreakpointContainer" onClick={() => { jumpPreviousBreakpoint && jumpPreviousBreakpoint() }} data-id="buttonNavigatorJumpPreviousBreakpoint">
<button className='btn btn-primary btn-sm navigator jumpButton' id='jumppreviousbreakpoint' data-id="buttonNavigatorJumpPreviousBreakpoint" onClick={() => { jumpPreviousBreakpoint && jumpPreviousBreakpoint() }} disabled={state.jumpPreviousBreakpointDisabled} style={{ pointerEvents: 'none' }}>
<span className="fas fa-step-backward"></span>
</button>

@ -75,7 +75,7 @@ export const TxBrowser = ({ requestDebug, updateTxNumberFlag, unloadRequested, t
</Tooltip>
}
>
<div onClick={handleSubmit}>
<div id="debuggerTransactionStartButtonContainer" data-id="debuggerTransactionStartButton" onClick={handleSubmit}>
<button
className='btn btn-primary btn-sm txbutton'
id='load'

Loading…
Cancel
Save