nifty-wallet/test/integration/tests.js

25 lines
610 B
JavaScript
Raw Normal View History

QUnit.test('agree to terms', function (assert) {
var done = assert.async()
// Select the mock app root
var app = $('iframe').contents().find('#app-content .mock-app-root')
2016-10-05 19:49:53 -07:00
app.find('.markdown').prop('scrollTop', 100000000)
wait().then(function() {
2016-10-05 19:49:53 -07:00
app.find('button').click()
2016-10-11 15:50:02 -07:00
}).then(function() {
return wait()
}).then(function() {
var title = app.find('h1').text()
assert.equal(title, 'MetaMask', 'title screen')
2016-10-11 15:50:02 -07:00
var buttons = app.find('button')
assert.equal(buttons.length, 2, 'two buttons: create and restore')
2016-10-11 15:50:02 -07:00
done()
})
2016-10-05 19:49:53 -07:00
// Wait for view to transition:
})