compilerloaded

pull/2868/head
filip mertens 2 years ago
parent cfaad6a614
commit b66eed3948
  1. 5
      apps/remix-ide-e2e/src/commands/verifyLoad.ts
  2. 9
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -23,6 +23,11 @@ class VerifyLoad extends EventEmitter {
locateStrategy: 'xpath',
timeout: 60000
})
.waitForElementPresent({
selector: "//span[@data-id='compilerloaded']",
locateStrategy: 'xpath',
timeout: 60000
})
.perform((done) => {
done()
this.emit('complete')

@ -453,6 +453,13 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
const isDisabled = !compiledFileName || (compiledFileName && !isSolFileSelected(compiledFileName))
setDisableCompileButton(isDisabled)
// just for e2e
// eslint-disable-next-line no-case-declarations
const loadedElement = document.createElement('span')
loadedElement.setAttribute('data-id', 'compilerloaded')
loadedElement.setAttribute('data-version', state.selectedVersion)
document.body.appendChild(loadedElement)
}
const compilationFinished = () => {
@ -849,7 +856,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
</div>
</div>
<div className="px-4">
<span id='compilerLoadedVersion' data-version={compilerLoadedVersion}></span>
{compilerLoadedVersion ? <span data-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={
<Tooltip id="overlay-tooltip-compile">

Loading…
Cancel
Save