mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Integration tests play nice with new disabled buttons.
This commit is contained in:
parent
e54b73679c
commit
736637363b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user