evmVersionSelector tested

pull/646/head
aniket-engg 4 years ago committed by Aniket
parent 07a66d74cf
commit 2c2135c6a3
  1. 6
      apps/remix-ide-e2e/src/tests/url.test.ts
  2. 5
      apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js

@ -21,7 +21,7 @@ module.exports = {
'Should load using URL compiler params': function (browser: NightwatchBrowser) {
browser
.assert.containsText('#versionSelector option[selected="selected"]', '0.7.4+commit.3f05b770')
// .assert.containsText('#evmVersionSelector option[selected="selected"]', 'istanbul')
.assert.containsText('#evmVersionSelector option[selected="selected"]', 'istanbul')
.verify.elementPresent('[id="optimize"]:checked')
},
@ -34,8 +34,8 @@ module.exports = {
.pause(5000)
.assert.containsText('#versionSelector option[selected="selected"]', 'custom')
// default values
.verify.elementPresent('[id="optimize"]:checked')
// .assert.containsText('#evmVersionSelector option[selected="selected"]', 'compiler default')
// .verify.elementPresent('[id="optimize"]:checked')
.assert.containsText('#evmVersionSelector option[selected="selected"]', 'default')
},

@ -219,7 +219,7 @@ class CompilerContainer {
this._view.evmVersionSelector = yo`
<select onchange="${this.onchangeEvmVersion.bind(this)}" class="custom-select" id="evmVersionSelector">
<option value="default">compiler default</option>
<option value="default" selected="selected">compiler default</option>
<option>istanbul</option>
<option>petersburg</option>
<option>constantinople</option>
@ -230,11 +230,8 @@ class CompilerContainer {
</select>`
if (this.compileTabLogic.evmVersion) {
const s = this._view.evmVersionSelector
console.log('s=====>', s)
let i
for (i = 0; i < s.options.length; i++) {
console.log('options value', s.options[i].value)
console.log('this.compileTabLogic.evmVersion', this.compileTabLogic.evmVersion)
if (s.options[i].value === this.compileTabLogic.evmVersion) {
break
}

Loading…
Cancel
Save