add data attribute to button

pull/5370/head
Joseph Izang 2 years ago
parent e4c51d6cab
commit a90dd199dc
  1. 2
      apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts
  2. 2
      libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx

@ -21,7 +21,7 @@ function addInstance (browser: NightwatchBrowser, address: string, isValidFormat
.setValue('.ataddressinput', address, function () { .setValue('.ataddressinput', address, function () {
if (!isValidFormat || !isValidChecksum) browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled') if (!isValidFormat || !isValidChecksum) browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled')
else if (isAbi) { else if (isAbi) {
browser.click('button[id^="runAndDeployAtAdressButton"]') browser.click('button[data-id="runAndDeployAtAdressButton"]')
.waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]') .waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]')
.execute(function () { .execute(function () {
const modal = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any const modal = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any

@ -335,7 +335,7 @@ export function ContractDropdownUI(props: ContractDropdownProps) {
</Tooltip> </Tooltip>
}> }>
<span> <span>
<button className="udapp_atAddress btn btn-sm btn-info" id="runAndDeployAtAdressButton" disabled={atAddressOptions. disabled} onClick={loadFromAddress} data-title={atAddressOptions.title} style={{ pointerEvents: 'none' }}>At Address</button> <button data-id="runAndDeployAtAddressButton" className="udapp_atAddress btn btn-sm btn-info" id="runAndDeployAtAdressButton" disabled={atAddressOptions. disabled} onClick={loadFromAddress} data-title={atAddressOptions.title} style={{ pointerEvents: 'none' }}>At Address</button>
</span> </span>
</OverlayTrigger> </OverlayTrigger>
<input <input

Loading…
Cancel
Save