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
parent 8f9c8f97a4
commit 0dcea61e3d

View File

@ -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);