more assertions

pull/2868/head
filip mertens 2 years ago
parent 2e65dc52e4
commit 3fe115ca3e
  1. 8
      apps/remix-ide-e2e/src/commands/setSolidityCompilerVersion.ts

@ -4,6 +4,14 @@ import EventEmitter from 'events'
class SetSolidityCompilerVersion extends EventEmitter {
command (this: NightwatchBrowser, version: string): NightwatchBrowser {
this.api
.waitForElementVisible({
selector: "//*[@id='versionSelector']",
locateStrategy: 'xpath'
})
.waitForElementPresent({
selector: `//option[@value='${version}']`,
locateStrategy: 'xpath'
})
.click(`#compileTabView #versionSelector [value="${version}"]`)
.pause(5000)
.saveScreenshot(`./reports/screenshots/${version}.png`)

Loading…
Cancel
Save