Bug 886299 - Adding code to re-enter the awesomescreen tabs before longtapping on the entries; r=gbrown

This commit is contained in:
Adrian Tamas 2013-07-10 16:10:55 +03:00
Родитель 3e1c8cb5c0
Коммит c537d53d4d
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -85,11 +85,18 @@ public class testShareLink extends BaseTest {
// Test the share popup in the Bookmarks tab
ListView blist = getBookmarksList("about:firefox");
// Make sure we are in the Bookmarks tab
// TODO: understand why this is sometimes necessary
mSolo.clickOnText("Bookmarks");
View bookmark = blist.getChildAt(1); // Getting child at 1 because 0 might be the Desktop folder
mSolo.clickLongOnView(bookmark);
verifySharePopup(shareOptions,"bookmarks");
// Test the share popup in the History tab
clickOnAwesomeBar();
// Make sure we are in the History tab
// TODO: understand why this is sometimes necessary
mSolo.clickOnText("History");
ListView hlist = getHistoryList("Today|Yesterday");
View history = hlist.getChildAt(1); // Getting child at 1 because 0 might be the "Today" label
mSolo.clickLongOnView(history);