add pause for plugin load

pull/5370/head
filip mertens 2 years ago
parent c150a690b1
commit ca658d7ea2
  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