log console

pull/5370/head
filip mertens 2 years ago
parent 620fee7d69
commit 301fb3fbf3
  1. 11
      apps/remix-ide-e2e/src/commands/setSolidityCompilerVersion.ts

@ -2,7 +2,7 @@ import { NightwatchBrowser } from 'nightwatch'
import EventEmitter from 'events'
class SetSolidityCompilerVersion extends EventEmitter {
command (this: NightwatchBrowser, version: string): NightwatchBrowser {
command(this: NightwatchBrowser, version: string): NightwatchBrowser {
this.api
.waitForElementVisible({
selector: "//*[@id='versionSelector']",
@ -15,9 +15,14 @@ class SetSolidityCompilerVersion extends EventEmitter {
.click(`#compileTabView #versionSelector [value="${version}"]`)
.saveScreenshot(`./reports/screenshots/${version}_1.png`)
.waitForElementPresent({
selector : `//span[@data-version='${version}']`,
selector: `//span[@data-version='${version}']`,
locateStrategy: 'xpath',
timeout: 120000
timeout: 120000,
}, 60000, 5000, false, (result) => {
console.log('COMPILER RESULT', result)
browser.captureBrowserConsoleLogs((logs) => {
console.log('COMPILER LOGS', logs)
})
})
.saveScreenshot(`./reports/screenshots/${version}.png`)
.perform(() => {

Loading…
Cancel
Save