added result indicator for compilation with compiler version

pull/11/head
LianaHus 5 years ago committed by ioedeveloper
parent 163a1754b6
commit 874274c9a1
  1. 1
      apps/remix-ide/src/app/tabs/compile-tab.js
  2. 4
      test-browser/commands/noWorkerErrorFor.js

@ -116,6 +116,7 @@ class CompileTab extends ViewPlugin {
this.fileManager.events.on('noFileSelected', this.data.eventHandlers.onNoFileSelected)
this.data.eventHandlers.onCompilationFinished = (success, data, source) => {
this._view.errorContainer.appendChild(yo`<span data-id="compilationFinishedWith_${this.getCurrentVersion()}"></span>`)
if (success) {
// forwarding the event to the appManager infra
this.emit('compilationFinished', source.target, source, 'soljson', data)

@ -15,8 +15,8 @@ class NoWorkerErrorFor extends EventEmitter {
function noWorkerErrorFor (browser, version, callback) {
browser
.setSolidityCompilerVersion(version)
.pause(2000)
.waitForElementPresent('*[data-id="compiledErrors"]')
.click('*[data-id="compilerContainerCompileBtn"]')
.waitForElementPresent('*[data-id="compilationFinishedWith_' + version + '"]', 10000)
.notContainsText('*[data-id="compiledErrors"]', 'worker error:undefined')
.notContainsText('*[data-id="compiledErrors"]', 'Uncaught RangeError: Maximum call stack size exceeded')
.notContainsText('*[data-id="compiledErrors"]', 'RangeError: Maximum call stack size exceeded')

Loading…
Cancel
Save