remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/test-browser/tests/homepage.js

27 lines
900 B

'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
}