Closed
Bug 929917
Opened 12 years ago
Closed 12 years ago
Create gaia test_app to exercise DOM API for Firefox Accounts
Categories
(Core Graveyard :: Identity, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.3 C2/1.4 S2(17jan)
People
(Reporter: jedp, Assigned: jedp)
References
Details
(Whiteboard: [qa+])
Attachments
(2 files, 1 obsolete file)
A test app, like the navigator.mozId tests, that exercises the Firefox Accounts code path will be useful for developer testing as well as QA.
| Assignee | ||
Comment 1•12 years ago
|
||
To be specific, I mean a gaia test_app
Updated•12 years ago
|
Assignee: nobody → spenrose
Comment 3•12 years ago
|
||
O.o - fun
Comment 4•12 years ago
|
||
Here's a small addition to the nav.mozID screen in the "UI Tests" test app that sends the wantIssuer parameter to watch(). Can't verify it works due to a gecko crash issue.
| Assignee | ||
Comment 5•12 years ago
|
||
Rebased over gaia master
Github link: https://github.com/jedp/gaia/tree/929917-fxa-test-app
Attachment #821764 -
Attachment is obsolete: true
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 7•12 years ago
|
||
I think so: https://github.com/mozilla-b2g/gaia/tree/master/test_apps/test-fxa-client Amirite?
Flags: needinfo?(spenrose)
Updated•12 years ago
|
Target Milestone: --- → 1.3 C2/1.4 S2(17jan)
| Assignee | ||
Comment 8•12 years ago
|
||
Ah - that's the IAC API, not the DOM API. We still want the UI Tests to exercise the DOM API.
Reopening. I'll tidy up my patch. Sorry this got lost in the shuffle.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 9•12 years ago
|
||
(In reply to Jed Parsons (use needinfo, please) [:jedp, :jparsons] from comment #6)
> This never landed in gaia, did it?
Yes, it landed, but I reverted it cause it was making UI test automation to fail. We can land it again after bug 929386.
| Assignee | ||
Comment 10•12 years ago
|
||
Sam, I'm happy to take this bug, if you have no objections.
I've added a separate gaia test app for the fxa DOM API tests. I think it will be better to keep the Persona and Firefox Accounts test apps separate.
I think we should use this or something like it instead of whatever we had before.
Assignee: spenrose → jparsons
Comment 11•12 years ago
|
||
Fantastic; thanks Jed!
| Assignee | ||
Updated•12 years ago
|
Status: REOPENED → ASSIGNED
Updated•12 years ago
|
| Assignee | ||
Comment 13•12 years ago
|
||
Comment on attachment 8389549 [details]
Gaia UI Test app for Firefox Accounts DOM API
We should just get something landed that we can start using.
Fernando, Sam, this patch makes a simple gaia test app for fxa.
You can login, logout, cancel login flow, and verify that watch sends a silent assertion (if you rig your test right)
I copied the css from what somebody added to the other identity ui test app. I have no personal views on the layout, but i thought it would be best to keep the same element structure and ids used in other automated tests.
Attachment #8389549 -
Flags: review?(spenrose)
Attachment #8389549 -
Flags: review?(ferjmoreno)
Comment 14•12 years ago
|
||
Comment on attachment 8389549 [details]
Gaia UI Test app for Firefox Accounts DOM API
Thanks for adding this -- very helpful and looks good. Nits picked in PR.
Attachment #8389549 -
Flags: review?(spenrose) → review+
| Assignee | ||
Comment 15•12 years ago
|
||
Thanks, Sam. Fixed and rebased.
Comment 16•12 years ago
|
||
Comment on attachment 8389549 [details]
Gaia UI Test app for Firefox Accounts DOM API
Thanks Jed. Make sure that Travis is happy with this patch before landing, please. Also, AFAIK there are no peers for the UI Test app, but I'd like Zac to take an additional look at the patch if possible as he is very familiar with this app.
Attachment #8389549 -
Flags: review?(zcampbell)
Attachment #8389549 -
Flags: review?(ferjmoreno)
Attachment #8389549 -
Flags: feedback+
| Assignee | ||
Comment 17•12 years ago
|
||
Thanks, Fernando. That makes good sense.
Yes, I'll watch travis. There may have been some bad effect on the persona marionette tests because this patch changes the titles of some elements (though not their ids).
Comment 18•12 years ago
|
||
Yes it looks like you need to change the locator here:
https://github.com/mozilla-b2g/gaia/blob/master/tests/python/gaia-ui-tests/gaiatest/apps/ui_tests/app.py#L17
As there is no ID on the element we've had to use Link text to match it which often leads to these kinds of issues.
| Assignee | ||
Comment 19•12 years ago
|
||
Thanks, Zac. Since these the tests and gaia are in two separate repos, would it make sense for me to:
1) add IDs to the elements as they are now, and commit to gaia
2) update gaia-ui-tests to select by ID, and commit
3) then update gaia again to add the new fxa component, with changed titles?
Flags: needinfo?(zcampbell)
Comment 20•12 years ago
|
||
The tests are in the same repo.
I don't mind if you use LINK_TEXT to locate the button but seeing as it's all in one patch and it's got to change anyway it'sa nice chance to add an ID in the app and the test and future proof it a bit :)
Flags: needinfo?(zcampbell)
| Assignee | ||
Comment 21•12 years ago
|
||
Updated PR according to comment 20
Comment 22•12 years ago
|
||
Comment on attachment 8389549 [details]
Gaia UI Test app for Firefox Accounts DOM API
Sorry guys I did not see that you'd update this pull request! Hope I wasn't holding you up.
r+ from me, good solution :)
Attachment #8389549 -
Flags: review?(zcampbell) → review+
| Assignee | ||
Comment 23•12 years ago
|
||
Thanks for the review, Zac! I appreciate your having caught it. I intended to ask for your review directly but in your perspicacity you beat me to it.
Travis is happy with the changes, so I've gone ahead and merged this.
I've opened Bug 986775 for us to write some basic marionette tests.
This is what I wanted when I opened this bug, so I'm going to go ahead and close it. Please re-open if you think I'm mistaken.
Cheers,
j
Status: ASSIGNED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•