From 6d316582726469014cfe76c159817d6b08746e9c Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 30 Jul 2020 17:12:17 +0200 Subject: [PATCH] fixed the tests --- apps/remix-ide/src/app/tabs/runTab/contractDropdown.js | 3 ++- apps/remix-ide/test-browser/tests/publishContract.test.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js index d6583a9405..461f518c8f 100644 --- a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js +++ b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js @@ -108,10 +108,11 @@ class ContractDropdownUI { ${this.ipfsCheckbox} ` diff --git a/apps/remix-ide/test-browser/tests/publishContract.test.js b/apps/remix-ide/test-browser/tests/publishContract.test.js index eab1d26fdb..0cefb98bde 100644 --- a/apps/remix-ide/test-browser/tests/publishContract.test.js +++ b/apps/remix-ide/test-browser/tests/publishContract.test.js @@ -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() },