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) //.pause(6000)
.switchBrowserTab(0) .switchBrowserTab(0)
.waitForElementVisible('[id="remixTourSkipbtn"]') .waitForElementVisible('[id="remixTourSkipbtn"]')
.click('[id="remixTourSkipbtn"]')
.perform((done) => { .perform((done) => {
if (!loadPlugin) return 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-name', loadPlugin.name)
localStorage.setItem('test-plugin-url', loadPlugin.url) localStorage.setItem('test-plugin-url', loadPlugin.url)
}, [loadPlugin]) }, [loadPlugin])
.refresh() .refresh()
.waitForElementVisible('[data-id="sidePanelSwapitTitle"]')
.perform(done()) .perform(done())
}) })
.maximizeWindow() .maximizeWindow()

Loading…
Cancel
Save