Closed Bug 1132936 Opened 11 years ago Closed 11 years ago

Create unit tests for IdentityPopup class in toolbars.py

Categories

(Testing :: Firefox UI Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla39

People

(Reporter: whimboo, Assigned: galgeek, Mentored)

References

Details

(Whiteboard: [lang=py])

Attachments

(1 file, 1 obsolete file)

We do not have any unit tests for the IdentityPopup class located at: https://github.com/mozilla/firefox-ui-tests/blob/master/firefox_puppeteer/ui/toolbars.py https://github.com/rbillings/firefox-ui-tests/blob/gobutton/firefox_puppeteer/tests/test_toolbars.py We need a new set of tests under their own class, which cover: * Checks that the elements are present and have the correct type (see the location bar tests as example) * opening and closing the identity popup
Blocks: 1132637
Mentor: hskupin
Hi Ankit, thanks for your interest to work on this bug! I was away last week and had a couple of other reviews to do first. I will have a look at your request in a bit.
Assignee: nobody → ankit.goyal90
Status: NEW → ASSIGNED
Comment on attachment 8565375 [details] [review] Bug 1132936 - Create unit tests for IdentityPopup class in toolbars.py. r=whimboo This PR looks good. But there are some changes necessary for a full review. I commented everything on the PR itself.
Attachment #8565375 - Flags: review?(hskupin) → feedback+
Hi Ankit, I see there is a pull request for this: https://github.com/mozilla/firefox-ui-tests/pull/86 It has some additional work to get r+, can you address this? If not, let us know and we will find someone else to address the review comments!
Flags: needinfo?(ankit.goyal90)
Joel, I am in the middle of something. So I can't contribute for a while.
Flags: needinfo?(ankit.goyal90)
Thank you Ankit for letting us know. I will put this bug back into the general bucket, so we can hopefully find someone else to finish it off. Thanks for the work so far.
Assignee: ankit.goyal90 → nobody
Status: ASSIGNED → NEW
Assignee: nobody → galgeek
It took a few tries to get to something that succeeds on all platforms, but it looks like this does, using hide.Popup() to force close the identity popup, until its own close method lands. I also have a draft of a unit test for the close method that I could add here or to the close method bug, depending on which lands first.
Attachment #8565375 - Attachment is obsolete: true
Attachment #8576348 - Flags: feedback?(hskupin)
Comment on attachment 8576348 [details] [review] github_pull_request.txt Looks good. Lets continue once the close() method has been landed.
Attachment #8576348 - Flags: feedback?(hskupin) → feedback+
Depends on: 1139594
The close() method has been landed. Barbara, could you get this PR for the unit tests updated? Thanks.
Comment on attachment 8576348 [details] [review] github_pull_request.txt Thanks for your feedback, Henrik! I've updated the PR, including adding a test_force_close. With the expected.element_present check in the close method, the try block in the tearDown needs to except NoSuchElementException.
Attachment #8576348 - Flags: feedback?(hskupin)
Attachment #8576348 - Flags: feedback?(hskupin) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
Product: Mozilla QA → Testing
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: