From aed6dbc8df1c348456f1a89c163b3ac6c8d5f963 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 28 Feb 2020 07:36:53 +0000 Subject: [PATCH 1/2] Enable swarm browser test --- test-browser/helpers/init.js | 2 +- test-browser/tests/publishContract.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test-browser/helpers/init.js b/test-browser/helpers/init.js index d2dfc4933a..535eaf4c3b 100644 --- a/test-browser/helpers/init.js +++ b/test-browser/helpers/init.js @@ -18,7 +18,7 @@ module.exports = function (browser, callback, url, preloadPlugins = true) { } function initModules (browser, callback) { - browser.pause(3000) + browser.pause(5000) .click('#icon-panel div[plugin="pluginManager"]') .scrollAndClick('#pluginManager article[id="remixPluginManagerListItem_solidity"] button') .pause(5000) diff --git a/test-browser/tests/publishContract.js b/test-browser/tests/publishContract.js index 6abbc18681..9636d990a9 100644 --- a/test-browser/tests/publishContract.js +++ b/test-browser/tests/publishContract.js @@ -23,7 +23,7 @@ module.exports = { }) .modalFooterOKClick() }, - 'Publish on Swarm': '' + function (browser) { + 'Publish on Swarm': function (browser) { browser .click('#publishOnSwarm') .getModalBody((value, done) => { From b3df35f33c03780c68e242042cc3bc2b5f023422 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 28 Feb 2020 07:38:07 +0000 Subject: [PATCH 2/2] Added delay to ZoKrates tests to fix failing test --- test-browser/tests/pluginManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test-browser/tests/pluginManager.js b/test-browser/tests/pluginManager.js index 9cdb0c1de5..dbcfac6fb8 100644 --- a/test-browser/tests/pluginManager.js +++ b/test-browser/tests/pluginManager.js @@ -70,6 +70,7 @@ module.exports = { .pause(5000) .frame(0) .useXpath().click("//span[text()='Compile']") + .pause(2000) .frameParent() .useCss().waitForElementVisible('*[data-id="modalDialogContainer"]') .assert.containsText('*[data-id="permissionHandlerMessage"]', 'ZOKRATES" WOULD LIKE TO ACCESS "FILE MANAGER" :')