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

@ -22,10 +22,13 @@ function addInstance (browser: NightwatchBrowser, address: string, isValidFormat
if (!isValidFormat || !isValidChecksum) browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled')
else if (isAbi) {
browser
// .click('button[data-id="runAndDeployAtAdressButton"]')
.isVisible({
selector: '//span[@data-id="runAndDeployAtAddressButton"]',
locateStrategy: 'xpath'
})
.click({
locateStrategy: 'css selector',
selector: 'span > button[id="runAndDeployAtAdressButton"]'
selector: '//button[@data-id="runAndDeployAtAdressButton"]',
locateStrategy: 'xpath'
})
.waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]')
.execute(function () {

@ -334,8 +334,8 @@ export function ContractDropdownUI(props: ContractDropdownProps) {
<span>{atAddressOptions.title}</span>
</Tooltip>
}>
<span>
<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 data-id="runAndDeployAtAddressButton">
<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>
</span>
</OverlayTrigger>
<input

Loading…
Cancel
Save