Closed
Bug 948383
Opened 11 years ago
Closed 11 years ago
Move all `home button event` into GaiaDevice class
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: zcampbell, Assigned: akruglov)
Details
(Whiteboard: [gaia-ui-test][mentor=zac][lang=py])
Attachments
(1 file)
In line with our plan to use GaiaDevice as a representation of all non-UI interactions with the device, move anywhere we have: self.marionette.execute_script("window.wrappedJSObject.dispatchEvent(new Event('home'));") into a method in GaiaDevice, named appropriately. Migrate all tests to use this method.
Comment 1•11 years ago
|
||
Bonus points for updating gcli to use this new method. See https://github.com/mozilla-b2g/gaia/blob/6d8df043e1eafa576c16f22bcd2579012b959fd6/tests/python/gaia-ui-tests/gaiatest/gcli.py#L165
Reporter | ||
Updated•11 years ago
|
Whiteboard: [gaia-ui-test][mentor=zac][lang=py]
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → akruglov
Please, review. Who else can I ask for review?
Attachment #8346102 -
Flags: review?(zcampbell)
Reporter | ||
Comment 4•11 years ago
|
||
Comment on attachment 8346102 [details] [review] https://github.com/mozilla-b2g/gaia/pull/14587 I will r? properly tomorrow but in the meantime we need to get rwood's r? on this too as it affects some of his tests.
Attachment #8346102 -
Flags: review?(rwood)
Comment 5•11 years ago
|
||
Comment on attachment 8346102 [details] [review] https://github.com/mozilla-b2g/gaia/pull/14587 Looks good and both of the updated endurance tests work fine. Thank you!
Attachment #8346102 -
Flags: review?(rwood) → review+
Updated•11 years ago
|
Attachment #8346102 -
Flags: review+
Reporter | ||
Comment 6•11 years ago
|
||
Comment on attachment 8346102 [details] [review] https://github.com/mozilla-b2g/gaia/pull/14587 r+ too!
Attachment #8346102 -
Flags: review?(zcampbell) → review+
Comment 7•11 years ago
|
||
Let's merge this when the tree is reopen
Comment 8•11 years ago
|
||
Merged in https://github.com/mozilla-b2g/gaia/commit/e1d81dbebb8abdfbc5f222ac1a2ae1055017a8f2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 9•11 years ago
|
||
Please ensure to squash merges before landing. Each commit should link to a bug number for easier tracking and cleaner commit history.
Comment 10•11 years ago
|
||
Hi, we backed out the fix due to not being squashed. I also had time to re-apply and squash the commits. The new commit has landed here (with proper author credit): https://github.com/mozilla-b2g/gaia/commit/62d2e42a1499c547e46d9c21b17bdebce9f04e12 Adding needsinfo? for Florian to see why we merged this pull request, and to make sure we don't do so again in the future.
Flags: needinfo?(florin.strugariu)
Reporter | ||
Comment 11•11 years ago
|
||
Thanks for fixing this up for us Kevin, it definitely shouldn't have been merged without the squash beforehand.
Comment 12•11 years ago
|
||
My mistake Kevin. I did not notice there where multiple commits in that pull. Promise it will never happen again
Flags: needinfo?(florin.strugariu)
You need to log in
before you can comment on or make changes to this bug.
Description
•