@ -16,6 +16,7 @@ class NoWorkerErrorFor extends EventEmitter {
function noWorkerErrorFor (browser: NightwatchBrowser, version: string, callback: VoidFunction) {
browser
.setSolidityCompilerVersion(version)
.waitForElementVisible('*[data-id="compilerContainerCompileBtn"]')
.click('*[data-id="compilerContainerCompileBtn"]')
.waitForElementPresent('*[data-id="compilationFinishedWith_' + version + '"]', 60000)
.notContainsText('*[data-id="compiledErrors"]', `Worker error: Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://binaries.soliditylang.org/wasm/${version}' failed to load.`)
@ -14,6 +14,11 @@ class SetSolidityCompilerVersion extends EventEmitter {
})
.waitForElementVisible(`[data-id="dropdown-item-${version}"]`)
.click(`[data-id="dropdown-item-${version}"]`)
.waitForElementPresent({
selector: `//*[@data-id='compilerloaded' and @data-version='${version}']`,
locateStrategy: 'xpath',
timeout: 120000
.perform(() => {
this.emit('complete')