better browserName condition for calling switchFile function

pull/1/head
ioedeveloper 5 years ago
parent 6bf7048eea
commit 7eb1fb77d5
  1. 4
      test-browser/tests/gist.js

@ -37,8 +37,8 @@ module.exports = {
browser
.modalFooterCancelClick()
.executeScript(`remix.loadgist('${gistid}')`)
if (runtimeBrowser === 'chrome') browser.switchFile('browser/gists')
browser.switchFile(`browser/gists/${gistid}`)
.perform((done) => { if (runtimeBrowser === 'chrome') { browser.switchFile('browser/gists') } done() })
.switchFile(`browser/gists/${gistid}`)
.switchFile(`browser/gists/${gistid}/1_Storage.sol`)
.perform(done)
}

Loading…
Cancel
Save