Skip to content

Commit

Permalink
tested default value for runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Dec 2, 2020
1 parent f3767c9 commit 52c0910
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/remix-ide-e2e/src/tests/url.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ module.exports = {
.verify.elementPresent('#optimize')
.assert.elementNotPresent('#optimize:checked')
.verify.elementPresent('#runs:disabled')
.click('[for="optimize"')
.verify.attributeEquals('#runs', 'value', '200')
.end()
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ class CompilerContainer {
onchange=${() => this.onchangeRuns()}
>`
if (this.compileTabLogic.optimize) {
this._view.runs.removeAttribute('disabled')
this._view.runs.value = this.compileTabLogic.runs
} else {
this._view.runs.setAttribute('disabled', '')
Expand Down

0 comments on commit 52c0910

Please sign in to comment.