Commit 0d47ef5c authored by ioedeveloper's avatar ioedeveloper

Homepage e2e tests

parent dc62bc9f
......@@ -175,6 +175,7 @@
"nightwatch_local_console": "nightwatch ./test-browser/tests/console.js --config nightwatch.js --env chrome ",
"nightwatch_local_gist": "nightwatch ./test-browser/tests/gist.js --config nightwatch.js --env chrome ",
"nightwatch_local_workspace": "nightwatch ./test-browser/tests/workspace.js --config nightwatch.js --env chrome ",
"nightwatch_local_homepage": "nightwatch ./test-browser/tests/homepage.js --config nightwatch.js --env chrome ",
"onchange": "onchange build/app.js -- npm-run-all lint",
"prepublish": "mkdirp build; npm-run-all -ls downloadsolc_root build",
"remixd": "remixd -s ./contracts --remix-ide http://127.0.0.1:8080",
......
'use strict'
const init = require('../helpers/init')
const sauce = require('./sauce')
module.exports = {
before: function (browser, done) {
init(browser, done, 'http://127.0.0.1:8080', false)
},
'Loads Icon\'s Panel': function (browser) {
browser.waitForElementVisible('#icon-panel', 10000)
.waitForElementVisible('#icon-panel > div > div[class^="homeIcon"]')
.waitForElementVisible('#fileExplorerIcons > div:nth-child(1)')
.waitForElementVisible('#settingsIcons > div:nth-child(1)')
.waitForElementVisible('#settingsIcons > div:nth-child(2)')
},
'Loads Side Panel': function (browser) {
browser.waitForElementVisible('#side-panel')
.assert.containsText('h6[class^="swapitTitle"]', 'FILE EXPLORERS')
.waitForElementVisible('div[class^="treeview"]')
.waitForElementVisible('ul[key="browser"] > li:nth-child(4)')
.end()
},
tearDown: sauce
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment