fix e2e tests

pull/5370/head
yann300 4 years ago
parent 4fa2ef0a2f
commit d32acf4ff7
  1. 2
      apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts
  2. 3
      apps/remix-ide/src/app/tabs/test-tab.js

@ -149,12 +149,14 @@ module.exports = {
.addFile('myTests/simple_storage_test.sol', sources[0]['tests/simple_storage_test.sol'])
.clickLaunchIcon('solidityUnitTesting')
.setValue('*[data-id="uiPathInput"]', 'myTests')
.click('*[data-id="testTabGenerateTestFolder"]')
.clickElementAtPosition('.singleTestLabel', 0)
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]')
.waitForElementPresent('*[data-id="testTabSolidityUnitTestsOutputheader"]', 40000)
.waitForElementPresent('*[data-id="testTabSolidityUnitTestsOutput"]')
.clearValue('*[data-id="uiPathInput"]')
.setValue('*[data-id="uiPathInput"]', 'tests')
.click('*[data-id="testTabGenerateTestFolder"]')
},
'Solidity Unittests': function (browser: NightwatchBrowser) {

@ -578,7 +578,8 @@ module.exports = class TestTab extends ViewPlugin {
data-id="uiPathInput"
name="utPath"
style="background-image: var(--primary);"
onkeydown=${(e) => { if (e.keyCode === 191) this.updateDirList() }}/>`
onkeydown=${(e) => { if (e.keyCode === 191) this.updateDirList() }}
onchange=${(e) => this.updateCurrentPath(e)}/>`
const createTestFolder = yo`<button
class="btn border ml-2"

Loading…
Cancel
Save