add pause for plugin load

pull/2868/head
filip mertens 2 years ago
parent 3ce1fc17b1
commit c6d549ff81
  1. 6
      apps/remix-ide-e2e/src/helpers/init.ts

@ -13,14 +13,16 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url
//.pause(6000)
.switchBrowserTab(0)
.waitForElementVisible('[id="remixTourSkipbtn"]')
.click('[id="remixTourSkipbtn"]')
.perform((done) => {
if (!loadPlugin) return done()
browser.execute(function (loadPlugin) { // override a plugin url for testing purpose
browser
.pause(5000)
.execute(function (loadPlugin) { // override a plugin url for testing purpose
localStorage.setItem('test-plugin-name', loadPlugin.name)
localStorage.setItem('test-plugin-url', loadPlugin.url)
}, [loadPlugin])
.refresh()
.waitForElementVisible('[data-id="sidePanelSwapitTitle"]')
.perform(done())
})
.maximizeWindow()

Loading…
Cancel
Save