pull/2868/head
filip mertens 2 years ago
parent d69d6790d5
commit d85b117403
  1. 11
      apps/remix-ide-e2e/src/commands/setSolidityCompilerVersion.ts
  2. 8
      apps/remix-ide-e2e/src/helpers/init.ts
  3. 1
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -13,18 +13,11 @@ class SetSolidityCompilerVersion extends EventEmitter {
locateStrategy: 'xpath'
})
.click(`#compileTabView #versionSelector [value="${version}"]`)
.saveScreenshot(`./reports/screenshots/${version}_1.png`)
.pause(5000)
.captureBrowserConsoleLogs((logs) => {
console.log('COMPILER LOGS', logs)
})
.isPresent({
.waitForElementPresent({
selector: `//span[@data-version='${version}']`,
locateStrategy: 'xpath',
}, (result) => {
console.log('VERSION PRESENT', result)
timeout: 60000
})
.saveScreenshot(`./reports/screenshots/${version}.png`)
.perform(() => {
this.emit('complete')
})

@ -33,13 +33,13 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url
.clickLaunchIcon('solidity')
.waitForElementVisible('[for="autoCompile"]')
.click('[for="autoCompile"]')
.verify.elementPresent('[data-id="compilerContainerAutoCompile"]:checked')
.verify.elementPresent('[data-id="compilerContainerAutoCompile"]:checked').perform(() => { callback() })
})
}else{
callback()
}
})
.perform(() => {
callback()
})
}
function initModules (browser: NightwatchBrowser, callback: VoidFunction) {

@ -849,7 +849,6 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
</div>
</div>
<div className="px-4">
<div>{compilerLoadedVersion}</div>
<span id='compilerLoadedVersion' data-version={compilerLoadedVersion}></span>
<button id="compileBtn" data-id="compilerContainerCompileBtn" className="btn btn-primary btn-block d-block w-100 text-break remixui_disabled mb-1 mt-3" onClick={compile} disabled={(configFilePath === '' && state.useFileConfiguration) || disableCompileButton}>
<OverlayTrigger overlay={

Loading…
Cancel
Save