diff --git a/apps/remix-ide-e2e/src/tests/url.test.ts b/apps/remix-ide-e2e/src/tests/url.test.ts index 07f39ff8a9..696bb69549 100644 --- a/apps/remix-ide-e2e/src/tests/url.test.ts +++ b/apps/remix-ide-e2e/src/tests/url.test.ts @@ -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() }, diff --git a/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js b/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js index 1bc28e1191..984c894119 100644 --- a/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js +++ b/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js @@ -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', '')