Merge pull request #2637 from ethereum/swarm-e2e-tests

Enabled Publish To Swarm Browser Test & Added Fix For ZoKrates Test
pull/1/head
yann300 5 years ago committed by GitHub
commit 0e478cc22a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test-browser/helpers/init.js
  2. 1
      test-browser/tests/pluginManager.js
  3. 2
      test-browser/tests/publishContract.js

@ -18,7 +18,7 @@ module.exports = function (browser, callback, url, preloadPlugins = true) {
} }
function initModules (browser, callback) { function initModules (browser, callback) {
browser.pause(3000) browser.pause(5000)
.click('#icon-panel div[plugin="pluginManager"]') .click('#icon-panel div[plugin="pluginManager"]')
.scrollAndClick('#pluginManager article[id="remixPluginManagerListItem_solidity"] button') .scrollAndClick('#pluginManager article[id="remixPluginManagerListItem_solidity"] button')
.pause(5000) .pause(5000)

@ -70,6 +70,7 @@ module.exports = {
.pause(5000) .pause(5000)
.frame(0) .frame(0)
.useXpath().click("//span[text()='Compile']") .useXpath().click("//span[text()='Compile']")
.pause(2000)
.frameParent() .frameParent()
.useCss().waitForElementVisible('*[data-id="modalDialogContainer"]') .useCss().waitForElementVisible('*[data-id="modalDialogContainer"]')
.assert.containsText('*[data-id="permissionHandlerMessage"]', 'ZOKRATES" WOULD LIKE TO ACCESS "FILE MANAGER" :') .assert.containsText('*[data-id="permissionHandlerMessage"]', 'ZOKRATES" WOULD LIKE TO ACCESS "FILE MANAGER" :')

@ -23,7 +23,7 @@ module.exports = {
}) })
.modalFooterOKClick() .modalFooterOKClick()
}, },
'Publish on Swarm': '' + function (browser) { 'Publish on Swarm': function (browser) {
browser browser
.click('#publishOnSwarm') .click('#publishOnSwarm')
.getModalBody((value, done) => { .getModalBody((value, done) => {

Loading…
Cancel
Save