fixed the tests

pull/5370/head
LianaHus 4 years ago
parent a7915464c8
commit 6d31658272
  1. 3
      apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
  2. 6
      apps/remix-ide/test-browser/tests/publishContract.test.js

@ -108,10 +108,11 @@ class ContractDropdownUI {
${this.ipfsCheckbox}
<label
for="deployAndRunPublishToIPFS"
data-id="contractDropdownIpfsCheckboxLabel"
class="m-0 form-check-label custom-control-label ${css.checkboxAlign}"
title="Publishing the source code and ABI to IPFS facilitates source code verification and will greatly foster contract adoption (auditing, debugging, calling it, etc...)"
>
PUBLISH TO IPFS
Publish to IPFS
</label>
</div>
`

@ -39,8 +39,8 @@ module.exports = {
.clickLaunchIcon('fileExplorers')
.openFile('browser/1_Storage.sol')
.clickLaunchIcon('udapp')
.waitForElementVisible('*[data-id="contractDropdownIpfsCheckbox"]')
.click('*[data-id="contractDropdownIpfsCheckbox"]')
.waitForElementVisible('*[data-id="contractDropdownIpfsCheckboxLabel"]')
.click('*[data-id="contractDropdownIpfsCheckboxLabel"]')
.click('*[data-id="Deploy - transact (not payable)"]')
.pause(5000)
.assert.containsText('*[data-id="modalDialogModalBody"]', 'Metadata of "storage" was published successfully.')
@ -51,7 +51,7 @@ module.exports = {
.refresh()
.openFile('browser/1_Storage.sol')
.clickLaunchIcon('udapp')
.waitForElementVisible('*[data-id="contractDropdownIpfsCheckbox"]')
.waitForElementVisible('*[data-id="contractDropdownIpfsCheckboxLabel"]')
.verify.elementPresent('*[data-id="contractDropdownIpfsCheckbox"]:checked')
.end()
},

Loading…
Cancel
Save