Closed Bug 822681 Opened 12 years ago Closed 12 years ago

Robocop: Add test for 'Tabs Drawer Menu' feature

Categories

(Firefox for Android Graveyard :: General, defect)

20 Branch
ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: xti, Assigned: xti)

References

Details

Attachments

(1 file, 2 obsolete files)

This bug tracks the Robocop test the Tabs Drawer Menu button and its options on Firefox for Android. First, the test opens a new private tab from the Tabs Drawer Menu,then it opens a new general tab from the Tabs Drawer Menu and finally it closes all tabs through the Close All Tabs option in the Tabs Drawer Menu.
Attached patch Tabs Drawer Menu patch V1.0 (obsolete) — Splinter Review
Attached patch Tabs Drawer Menu patch V1.1 (obsolete) — Splinter Review
Cleared some spaces
Attachment #693424 - Attachment is obsolete: true
Attachment #693427 - Flags: review?(jmaher)
this patch doesn't apply, can you fix it up and upload the working one?
I updated and extended the previous patch
Attachment #693427 - Attachment is obsolete: true
Attachment #693427 - Flags: review?(jmaher)
Attachment #694367 - Flags: review?(jmaher)
Comment on attachment 694367 [details] [diff] [review] Tabs Drawer Menu patch V2.0 Review of attachment 694367 [details] [diff] [review]: ----------------------------------------------------------------- pretty good patch. I am going to r- due to it failing locally. If you have suggestions for debugging, I would appreciate it. ::: mobile/android/base/tests/testTabsTrayMenu.java.in @@ +60,5 @@ > + > + // Verifying if the private data is not listed in Awesomescreen > + clickOnAwesomeBar(); > + mSolo.clickOnText("History"); > + mAsserter.ok(mSolo.waitForText("Browser Blank Page 01"), "Looking in History for the page loaded in the normal tab", "Fount it"); s/Fount/Found/ For some reason this fails for me all the time at this spot. I am testing on the tegras we use for automation. @@ +73,5 @@ > + mAsserter.is(tabCountInt, expectedTabCount, "Number of tabs is 1"); > + } > + > + private void addNewTab(String url) { > + nit: extra whitespace/tab here. @@ +83,5 @@ > + mSolo.clickOnText("New Tab"); > + > + /* Must pause before sending keys, until awesome bar is displayed; waiting for > + known text is simple > + */ no need to add 'waiting for known text is simple' @@ +89,5 @@ > + > + // Cannot use loadUrl(): getText fails because we are using a different urlbar > + mActions.sendKeys(url); > + hitEnterAndWait(); > + } this method would make a good general method for other tests. We could file a followup bug to do that. @@ +103,5 @@ > + > + // Waiting for about:home opened in Private Mode > + mSolo.waitForText("Enter Search or Address"); > + > + loadUrl(url); for a regular tab above, we need sendKeys() and hitEnterAndWait(). I would like to know more about the urlbar differences between regular and private browsing.
Attachment #694367 - Flags: review?(jmaher) → review-
Comment on attachment 694367 [details] [diff] [review] Tabs Drawer Menu patch V2.0 Review of attachment 694367 [details] [diff] [review]: ----------------------------------------------------------------- I had an issue in my local environment, I have tested this locally and on try server with success!
Attachment #694367 - Flags: review- → review+
Assignee: nobody → nicolae.cristian
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Blocks: 744859
Target Milestone: Firefox 20 → ---
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: