|
|
|
@ -9,7 +9,8 @@ module.exports = { |
|
|
|
|
verifyContract: verifyContract, |
|
|
|
|
testFunction, |
|
|
|
|
checkDebug, |
|
|
|
|
goToVMtraceStep |
|
|
|
|
goToVMtraceStep, |
|
|
|
|
useFilter |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function getCompiledContracts (browser, compiled, callback) { |
|
|
|
@ -116,6 +117,22 @@ function addFile (browser, name, content, done) { |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function useFilter (browser, filter, test, done) { |
|
|
|
|
var filterClass = '#editor-container div[class^="search"] input[class^="filter"]' |
|
|
|
|
browser.setValue(filterClass, filter, function () { |
|
|
|
|
browser.execute(function () { |
|
|
|
|
return document.querySelector('#modal-dialog #prompt_text').innerHTML === test |
|
|
|
|
}, [], function (result) { |
|
|
|
|
browser.setValue(filterClass, '', function () { |
|
|
|
|
if (!result.value) { |
|
|
|
|
browser.assert.fail('useFilter on ' + filter + ' ' + test, 'info about error', '') |
|
|
|
|
} |
|
|
|
|
done() |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function switchFile (browser, name, done) { |
|
|
|
|
browser |
|
|
|
|
.useXpath() |
|
|
|
|