pull/5370/head
yann300 2 years ago committed by Aniket
parent 11ed5e9d16
commit fd9e4ea9dd
  1. 8
      apps/remix-ide-e2e/src/tests/recorder.test.ts
  2. 4
      libs/remix-ui/run-tab/src/lib/components/recorderCardUI.tsx

@ -42,7 +42,7 @@ module.exports = {
.createContract(['12']) .createContract(['12'])
.clickInstance(0) .clickInstance(0)
.clickFunction('set - transact (not payable)', { types: 'uint256 _p', values: '34' }) .clickFunction('set - transact (not payable)', { types: 'uint256 _p', values: '34' })
.click('i.savetransaction') .click('.savetransaction')
.waitForElementVisible('[data-id="udappNotify-modal-footer-ok-react"]') .waitForElementVisible('[data-id="udappNotify-modal-footer-ok-react"]')
.execute(function () { .execute(function () {
const modalOk = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any const modalOk = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any
@ -77,7 +77,7 @@ module.exports = {
.selectContract('t2est') .selectContract('t2est')
.pause(1000) .pause(1000)
.createContract([]) .createContract([])
.click('i.savetransaction') .click('.savetransaction')
.waitForElementVisible('[data-id="udappNotify-modal-footer-ok-react"]') .waitForElementVisible('[data-id="udappNotify-modal-footer-ok-react"]')
.execute(function () { .execute(function () {
const modalOk = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any const modalOk = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any
@ -108,7 +108,7 @@ module.exports = {
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.click('*[data-id="deployAndRunClearInstances"]') .click('*[data-id="deployAndRunClearInstances"]')
.click('*[data-id="runtabLivemodeInput"]') .click('*[data-id="runtabLivemodeInput"]')
.click('i.runtransaction') .click('.runtransaction')
.pause(1000) .pause(1000)
.clickInstance(0) .clickInstance(0)
.getAddressAtPosition(0, (address) => { .getAddressAtPosition(0, (address) => {
@ -128,7 +128,7 @@ module.exports = {
.openFile('scenario_live_mode.json') .openFile('scenario_live_mode.json')
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.click('*[data-id="deployAndRunClearInstances"]') .click('*[data-id="deployAndRunClearInstances"]')
.click('i.runtransaction') .click('.runtransaction')
.pause(5000) .pause(5000)
.clickInstance(0) .clickInstance(0)
.getAddressAtPosition(0, (address) => { .getAddressAtPosition(0, (address) => {

@ -43,8 +43,8 @@ export function RecorderUI (props: RecorderProps) {
</div> </div>
<div className={`flex-column ${toggleExpander ? "d-flex" : "d-none"}`}> <div className={`flex-column ${toggleExpander ? "d-flex" : "d-none"}`}>
<div className="mb-1 mt-1 fmt-2 custom-control custom-checkbox mb-1"> <div className="mb-1 mt-1 fmt-2 custom-control custom-checkbox mb-1">
<input ref={inputLive} type="checkbox" id="livemode-recorder" data-id="runtabLivemodeInput" className="custom-control-input custom-select" name="input-livemode"/> <input ref={inputLive} type="checkbox" id="livemode-recorder" className="custom-control-input custom-select" name="input-livemode"/>
<label className="form-check-label custom-control-label" htmlFor="livemode-recorder">When running transactions, get the contracts bytecodes from the last compilation result.</label> <label className="form-check-label custom-control-label" data-id="runtabLivemodeInput" htmlFor="livemode-recorder">When running transactions, get the contracts bytecodes from the last compilation result.</label>
</div> </div>
<div className="mb-1 mt-1 udapp_transactionActions"> <div className="mb-1 mt-1 udapp_transactionActions">
<OverlayTrigger placement={'right'} overlay={ <OverlayTrigger placement={'right'} overlay={

Loading…
Cancel
Save