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)
Testing
Firefox UI Tests
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
Updated•11 years ago
|
Mentor: cmanchester
| Reporter | ||
Updated•11 years ago
|
Mentor: hskupin
Comment 1•11 years ago
|
||
Attachment #8565375 -
Flags: review?(hskupin)
| Reporter | ||
Comment 2•11 years ago
|
||
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
| Reporter | ||
Comment 3•11 years ago
|
||
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+
Comment 4•11 years ago
|
||
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)
Comment 5•11 years ago
|
||
Joel, I am in the middle of something. So I can't contribute for a while.
Flags: needinfo?(ankit.goyal90)
| Reporter | ||
Comment 6•11 years ago
|
||
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 | ||
Updated•11 years ago
|
Assignee: nobody → galgeek
| Assignee | ||
Comment 7•11 years ago
|
||
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)
| Reporter | ||
Comment 8•11 years ago
|
||
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+
| Reporter | ||
Comment 9•11 years ago
|
||
The close() method has been landed. Barbara, could you get this PR for the unit tests updated? Thanks.
| Assignee | ||
Comment 10•11 years ago
|
||
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)
| Reporter | ||
Updated•11 years ago
|
Attachment #8576348 -
Flags: feedback?(hskupin) → review+
| Reporter | ||
Comment 11•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
Updated•10 years ago
|
Product: Mozilla QA → Testing
You need to log in
before you can comment on or make changes to this bug.
Description
•