Commit db50e972 authored by yann300's avatar yann300

fix test: addInstance function

parent d6f39d3e
......@@ -147,15 +147,17 @@ function setEditorValue (value) {
return this
}
function addInstance (browser, address, done) {
function addInstance (browser, address, callback) {
browser.setValue('.ataddressinput', address, function () {
browser.click('div[class^="atAddress"]')
.perform((client) => {
.perform((client, done) => {
browser.execute(function () {
document.querySelector('#modal-footer-ok').click()
}, [], function (result) {
done()
})
}).perform(() => {
callback()
})
})
}
......
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