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/ballot.js

28 lines
600 B

'use strict'
var contractHelper = require('../helpers/contracts')
var examples = require('../../src/app/example-contracts')
var sources = {
'sources': {
'Untitled': examples.ballot.content
}
}
8 years ago
module.exports = {
'@Sources': function () {
return sources
},
8 years ago
'Ballot': function (browser) {
runTests(browser)
8 years ago
}
}
8 years ago
function runTests (browser, testData) {
browser
.url('http://127.0.0.1:8080/#version=builtin')
.waitForElementVisible('.newFile', 10000)
contractHelper.testContracts(browser, sources.sources.Untitled, ['Ballot'], function () {
browser.end()
})
}