From c6d549ff8180873b0dfc4e0000e79e62770a8772 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Sat, 3 Sep 2022 16:33:50 +0200 Subject: [PATCH] add pause for plugin load --- apps/remix-ide-e2e/src/helpers/init.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/helpers/init.ts b/apps/remix-ide-e2e/src/helpers/init.ts index e58a42c666..3a815ce23b 100644 --- a/apps/remix-ide-e2e/src/helpers/init.ts +++ b/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()