Bug 1334909 - Wait for BookmarkingUI to have all pending statements complete before continuing with test. r=mak

MozReview-Commit-ID: 1xMUm8aolOy

--HG--
extra : rebase_source : c61557946f805b0b9ce98d664f97b7318ec64188
This commit is contained in:
Jared Wein 2017-02-03 15:03:06 -05:00
Родитель 723732ff7f
Коммит 7a7e2ed898
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -27,6 +27,11 @@ function* test_bookmarks_popup({isNewBookmark, popupShowFn, popupEditFn,
});
}
info(`BookmarkingUI.status is ${BookmarkingUI.status}`);
yield BrowserTestUtils.waitForCondition(
() => BookmarkingUI.status != BookmarkingUI.STATUS_UPDATING,
"BookmarkingUI should not be updating");
is(bookmarkStar.hasAttribute("starred"), !isNewBookmark,
"Page should only be starred prior to popupshown if editing bookmark");
is(bookmarkPanel.state, "closed", "Panel should be 'closed' to start test");