Closed
Bug 964165
Opened 12 years ago
Closed 12 years ago
[Test] Test window.alert in marionette python under new window management system
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect, P1)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: alive, Assigned: RobertC)
References
Details
Attachments
(1 file)
See relavant bug for marionette js: bug 964157
Updated•12 years ago
|
Component: Gaia::System::Window Mgmt → Gaia::UI Tests
Keywords: regression
Comment 1•12 years ago
|
||
For this our test case will be:
1. open UITests app
2. go to the 'UI/Alert' page
3. Tap 'alert'
4. Assert modal dialog
Is that suitable Alive?
Flags: needinfo?(alive)
| Reporter | ||
Comment 2•12 years ago
|
||
(In reply to Zac C (:zac) from comment #1)
> For this our test case will be:
> 1. open UITests app
> 2. go to the 'UI/Alert' page
> 3. Tap 'alert'
> 4. Assert modal dialog
>
> Is that suitable Alive?
Great :)
It'd be nice if we have some shared alert/confirm/prompt assertion and actions helper (click/cancel...) so all apps has alert/modal/dialog could reuse.
Flags: needinfo?(alive)
Comment 3•12 years ago
|
||
(In reply to Alive Kuo [:alive][NEEDINFO!][:艾莉芙] from comment #2)
> Great :)
>
> It'd be nice if we have some shared alert/confirm/prompt assertion and
> actions helper (click/cancel...) so all apps has alert/modal/dialog could
> reuse.
We mostly do already for prompts like this!
Updated•12 years ago
|
Priority: -- → P1
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → robert.chira
| Assignee | ||
Comment 4•12 years ago
|
||
Attachment #8365973 -
Flags: review?(zcampbell)
Attachment #8365973 -
Flags: review?(florin.strugariu)
Attachment #8365973 -
Flags: review?(bob.silverberg)
Attachment #8365973 -
Flags: review?(andrei.hutusoru)
| Assignee | ||
Comment 5•12 years ago
|
||
The test from the pull request taps on the first alert button.
Should we add a test that taps on the second one, which opens the alert in the iframe?
Comment 6•12 years ago
|
||
Comment on attachment 8365973 [details] [review]
Pull request
Comments that need to be addressed
Attachment #8365973 -
Flags: review?(andrei.hutusoru) → review-
Comment 7•12 years ago
|
||
In comment #1, zac says "4. Assert modal dialog", which to me suggests that we should be asserting that we are in fact seeing a modal dialog. Is there something we should be doing in the test to assert this? Currently it's just checking the text and then tapping the ok button. This may be enough, but I just wanted to check against the requirements.
Flags: needinfo?(zcampbell)
Comment 8•12 years ago
|
||
Comment on attachment 8365973 [details] [review]
Pull request
See the PR for a question and a comment.
Attachment #8365973 -
Flags: review?(bob.silverberg) → review-
Comment 9•12 years ago
|
||
Sure, the test should assert that the dialog is visible. Reviewers and test coder can decide what's valid.
Flags: needinfo?(zcampbell)
Comment 10•12 years ago
|
||
Comment on attachment 8365973 [details] [review]
Pull request
very close, just a couple of small nits!
Attachment #8365973 -
Flags: review?(zcampbell) → review-
| Assignee | ||
Updated•12 years ago
|
Attachment #8365973 -
Flags: review?(zcampbell)
Attachment #8365973 -
Flags: review?(bob.silverberg)
Attachment #8365973 -
Flags: review?(andrei.hutusoru)
Attachment #8365973 -
Flags: review-
Updated•12 years ago
|
Attachment #8365973 -
Flags: review+
Comment 11•12 years ago
|
||
Comment on attachment 8365973 [details] [review]
Pull request
this failed on travis
Attachment #8365973 -
Flags: review?(florin.strugariu) → review-
Comment 12•12 years ago
|
||
Comment on attachment 8365973 [details] [review]
Pull request
This is failing on desktop. See comments in the PR.
Attachment #8365973 -
Flags: review?(bob.silverberg) → review-
| Assignee | ||
Comment 13•12 years ago
|
||
Skipped the test on desktop because of Bug 979220
| Assignee | ||
Updated•12 years ago
|
Attachment #8365973 -
Flags: review?(florin.strugariu)
Attachment #8365973 -
Flags: review?(bob.silverberg)
Attachment #8365973 -
Flags: review?(andrei.hutusoru)
Attachment #8365973 -
Flags: review-
Attachment #8365973 -
Flags: review+
Comment 14•12 years ago
|
||
Comment on attachment 8365973 [details] [review]
Pull request
I believe that the new test needs to be skipped on tbpl as well.
Attachment #8365973 -
Flags: review?(bob.silverberg) → review-
Comment 15•12 years ago
|
||
Comment on attachment 8365973 [details] [review]
Pull request
With Bob's updates it looks OK
Attachment #8365973 -
Flags: review?(florin.strugariu) → review+
| Assignee | ||
Comment 16•12 years ago
|
||
Comment on attachment 8365973 [details] [review]
Pull request
Disabled the test on tbpl.
Attachment #8365973 -
Flags: review?(florin.strugariu)
Attachment #8365973 -
Flags: review?(bob.silverberg)
Attachment #8365973 -
Flags: review-
Attachment #8365973 -
Flags: review+
Updated•12 years ago
|
Attachment #8365973 -
Flags: review?(florin.strugariu) → review+
Updated•12 years ago
|
Attachment #8365973 -
Flags: review?(bob.silverberg) → review+
Comment 18•12 years ago
|
||
(In reply to Florin Strugariu [:Bebe] from comment #17)
> Zac is this test in our Smoke test plan?
No I'm not and not really sure this is a high value test case.
It seems like the kind of thing that the marionettejs tests will have good coverage for.
Flags: needinfo?(zcampbell)
Comment 19•12 years ago
|
||
This is a good candidate for marionette-js tests on CI
There's no real device-specific functionality here.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Updated•12 years ago
|
Attachment #8365973 -
Flags: review?(zcampbell)
You need to log in
before you can comment on or make changes to this bug.
Description
•