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)

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: alive, Assigned: RobertC)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
Bebe
: review+
bsilverberg
: review+
Details | Review
See relavant bug for marionette js: bug 964157
Component: Gaia::System::Window Mgmt → Gaia::UI Tests
Keywords: regression
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)
(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)
(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!
Priority: -- → P1
Assignee: nobody → robert.chira
Attached file Pull request
Attachment #8365973 - Flags: review?(zcampbell)
Attachment #8365973 - Flags: review?(florin.strugariu)
Attachment #8365973 - Flags: review?(bob.silverberg)
Attachment #8365973 - Flags: review?(andrei.hutusoru)
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 on attachment 8365973 [details] [review] Pull request Comments that need to be addressed
Attachment #8365973 - Flags: review?(andrei.hutusoru) → review-
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 on attachment 8365973 [details] [review] Pull request See the PR for a question and a comment.
Attachment #8365973 - Flags: review?(bob.silverberg) → review-
Sure, the test should assert that the dialog is visible. Reviewers and test coder can decide what's valid.
Flags: needinfo?(zcampbell)
Comment on attachment 8365973 [details] [review] Pull request very close, just a couple of small nits!
Attachment #8365973 - Flags: review?(zcampbell) → review-
Attachment #8365973 - Flags: review?(zcampbell)
Attachment #8365973 - Flags: review?(bob.silverberg)
Attachment #8365973 - Flags: review?(andrei.hutusoru)
Attachment #8365973 - Flags: review-
Attachment #8365973 - Flags: review+
Comment on attachment 8365973 [details] [review] Pull request this failed on travis
Attachment #8365973 - Flags: review?(florin.strugariu) → review-
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-
Skipped the test on desktop because of Bug 979220
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 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 on attachment 8365973 [details] [review] Pull request With Bob's updates it looks OK
Attachment #8365973 - Flags: review?(florin.strugariu) → review+
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+
Attachment #8365973 - Flags: review?(florin.strugariu) → review+
Attachment #8365973 - Flags: review?(bob.silverberg) → review+
Zac is this test in our Smoke test plan?
Flags: needinfo?(zcampbell)
(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)
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
Attachment #8365973 - Flags: review?(zcampbell)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: