Closed
Bug 1432468
Opened 7 years ago
Closed 7 years ago
New XCUITest: Sync/FxAccount
Categories
(Firefox for iOS :: Build & Test, enhancement)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fxios | 11.0 | --- |
People
(Reporter: isabel_rios, Assigned: isabel_rios)
Details
Attachments
(1 file)
Although we can not test yet the full flow from creating an account and sync it, we could add some tests to check some scenarios for example:
-User tries to sign in with wrong email/psw
-Check the UI for Sign in or Create account
-Try to sign in from settings or from last tour screen
-No presence of Disconnect Sync in settings
-...
Would that be useful till we can create more complete tests?
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → irios.mozilla
Assignee | ||
Updated•7 years ago
|
Attachment #8946678 -
Flags: review?(npark)
Attachment #8946678 -
Flags: review?(jhugman)
Assignee | ||
Comment 2•7 years ago
|
||
There are a few things I'm not sure about on the FxScreenGraph.
- Don't know how, if possible, to add identifiers for:
Sign in: app.webViews.buttons["Sign in"]
Create an account: app.webViews.links["Create an account"]
- Also I have changed the typePasscode function's name to make it more general so we can use it here when trying to type something.
I'm really bad naming stuff, so please feel free to suggest new names if they make more sense.
Comment 3•7 years ago
|
||
Comment on attachment 8946678 [details] [review]
Pull Request
Scriptwise, looks good to me except that I'd like to see the valid/invalid input texts at the script level, rather than looking into the FxScreengraph.
Attachment #8946678 -
Flags: review?(npark) → review+
Assignee | ||
Comment 4•7 years ago
|
||
Thanks No-Jun for your review and feedback!
I did it that way to follow the approach similar to what we did for Authentication tests where user has to enter passcode and different scnearios (correct, incorrect passcode) are tested.
I can change that and create Actions only to tap into the fields and use the typeText("whatever") after the actions in the test scripts so that it is clear what user is typing. Or I can add a comment to make it clear what user types and why is that the expected result and point to the place where it is set in case that is easier for future maintenance.
If you agree, lets wait for Jame's feedback and make a decision between the different approaches and what would be best for understanding and maintaining the tests.
Comment 5•7 years ago
|
||
Yeah I was thinking about Authentication tests too, for that we also embed passcodes, and ideally we'd like to get that exposed as well, but at least in that case it's a simple match/nonmatch comparison. In this case, they might be wondering "what counts as 'invalid' input?" And since we're creating a new test and there's no need to touch the existing test case, this might be a good idea.
Comment 6•7 years ago
|
||
Comment on attachment 8946678 [details] [review]
Pull Request
I've left some comments in the PR. r? me again when you've made the requested changes. Thanks.
Attachment #8946678 -
Flags: review?(jhugman) → feedback+
Assignee | ||
Comment 7•7 years ago
|
||
Comment on attachment 8946678 [details] [review]
Pull Request
Thanks for the review! I addressed the comments on the PR and added more there. Hope it looks better and as you expected now.
Attachment #8946678 -
Flags: review?(jhugman)
Comment 8•7 years ago
|
||
Comment on attachment 8946678 [details] [review]
Pull Request
A couple of nits, but otherwise good job!
Attachment #8946678 -
Flags: review?(jhugman)
Attachment #8946678 -
Flags: review+
Attachment #8946678 -
Flags: feedback+
Assignee | ||
Comment 9•7 years ago
|
||
Merged: https://github.com/mozilla-mobile/firefox-ios/commit/790c7bc87a7483cff4031c74786449c98941c17e
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•7 years ago
|
Whiteboard: [needsuplift]
Assignee | ||
Comment 10•7 years ago
|
||
Uplifted v11.x: https://github.com/mozilla-mobile/firefox-ios/commit/b18e69eb16abf99b79748f178176c1464d8bbed5
Whiteboard: [needsuplift]
You need to log in
before you can comment on or make changes to this bug.
Description
•