add waits between notices.
This commit is contained in:
parent
415b9b245c
commit
bf9d1f405f
File diff suppressed because one or more lines are too long
|
@ -9,6 +9,19 @@ QUnit.test('render init screen', function (assert) {
|
||||||
wait().then(function() {
|
wait().then(function() {
|
||||||
app = $('iframe').contents().find('#app-content .mock-app-root')
|
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
|
// Scroll through terms
|
||||||
var title = app.find('h1').text()
|
var title = app.find('h1').text()
|
||||||
assert.equal(title, 'MetaMask', 'title screen')
|
assert.equal(title, 'MetaMask', 'title screen')
|
||||||
|
|
Loading…
Reference in New Issue