1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

add waits between notices.

This commit is contained in:
Kevin Serrano 2017-02-20 13:41:46 -08:00
parent 415b9b245c
commit bf9d1f405f
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
2 changed files with 36 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -9,6 +9,19 @@ QUnit.test('render init screen', function (assert) {
wait().then(function() {
app = $('iframe').contents().find('#app-content .mock-app-root')
const recurseNotices = function () {
var button = app.find('button')
if (button.html() === 'Continue') {
button.click()
return wait().then(() => {
return recurseNotices()
})
} else {
return wait()
}
}
return recurseNotices()
}).then(function() {
// Scroll through terms
var title = app.find('h1').text()
assert.equal(title, 'MetaMask', 'title screen')