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

Integration tests play nice with new disabled buttons.

This commit is contained in:
Kevin Serrano 2017-02-20 15:07:01 -08:00
parent e54b73679c
commit 736637363b
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4

View File

@ -10,10 +10,14 @@ QUnit.test('render init screen', function (assert) {
app = $('iframe').contents().find('#app-content .mock-app-root')
const recurseNotices = function () {
var button = app.find('button')
let button = app.find('button')
if (button.html() === 'Continue') {
button.click()
let termsPage = app.find('.markdown')[0]
termsPage.scrollTop = termsPage.scrollHeight
return wait().then(() => {
button.click()
return wait()
}).then(() => {
return recurseNotices()
})
} else {