mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 10:30:04 +01:00
Make test more resilient
This commit is contained in:
parent
6d63720f87
commit
119c0fdecf
@ -9,7 +9,7 @@ async function runFirstTimeUsageTest (assert, done) {
|
||||
// recurse notices
|
||||
while (true) {
|
||||
const button = app.find('button')
|
||||
if (button.html() === 'Accept') {
|
||||
if (button && button.html() === 'Accept') {
|
||||
// still notices to accept
|
||||
const termsPage = app.find('.markdown')[0]
|
||||
termsPage.scrollTop = termsPage.scrollHeight
|
||||
@ -59,8 +59,8 @@ async function runFirstTimeUsageTest (assert, done) {
|
||||
|
||||
// Skip notices:
|
||||
let detail = app.find('.tou__title')[0]
|
||||
button = app.find('button')
|
||||
if (button.html() === 'Accept') {
|
||||
button = app.find('button')[0]
|
||||
if (button && button.html() === 'Accept') {
|
||||
app.find('button').click()
|
||||
await timeout(1000)
|
||||
button = app.find('button')
|
||||
|
Loading…
Reference in New Issue
Block a user