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:
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() {
|
||||
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')
|
||||
|
Loading…
Reference in New Issue
Block a user