fix setting version

pull/4346/head
filip mertens 1 year ago
parent b00c0d28ec
commit 592b65335e
  1. 1
      apps/remix-ide-e2e/src/commands/noWorkerErrorFor.ts
  2. 5
      apps/remix-ide-e2e/src/commands/setSolidityCompilerVersion.ts

@ -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')
})

Loading…
Cancel
Save