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 browser
.modalFooterCancelClick() .modalFooterCancelClick()
.executeScript(`remix.loadgist('${gistid}')`) .executeScript(`remix.loadgist('${gistid}')`)
if (runtimeBrowser === 'chrome') browser.switchFile('browser/gists') .perform((done) => { if (runtimeBrowser === 'chrome') { browser.switchFile('browser/gists') } done() })
browser.switchFile(`browser/gists/${gistid}`) .switchFile(`browser/gists/${gistid}`)
.switchFile(`browser/gists/${gistid}/1_Storage.sol`) .switchFile(`browser/gists/${gistid}/1_Storage.sol`)
.perform(done) .perform(done)
} }

Loading…
Cancel
Save