Closed
Bug 921939
Opened 11 years ago
Closed 11 years ago
[b2gperf] App with localized name couldn't be access by gaia_app.js
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect, P2)
Tracking
(b2g-v2.0 fixed)
RESOLVED
FIXED
2.0 S5 (4july)
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | fixed |
People
(Reporter: alive, Assigned: davehunt)
References
Details
(Keywords: perf, Whiteboard: [c=automation p= s=2014.07.04.t u=])
Attachments
(1 file, 2 obsolete files)
https://github.com/mozilla-b2g/gaia/blob/106001c4e0ab9253001bed815c03f46b8dd046f0/tests/python/gaia-ui-tests/gaiatest/atoms/gaia_apps.js#L186
Currently GaiaApps in b2gperf accesses AppWindow via name comparison.
However the name property of AppWindow would be replaced each time we have a localized event.
Simple proposal:
Keep the English name in another attribute and modify gaia_apps to use that.
The name access seems unresolvable currently...if we want to use symptoms like App=System when running command line.
Reporter | ||
Comment 1•11 years ago
|
||
This is a workaround to resolve localized event: compare manifest.name instead of app.name.
I don't really know what's the difference between the two gaia_apps.js
Attachment #811876 -
Flags: review?(dave.hunt)
Assignee | ||
Comment 2•11 years ago
|
||
Thanks Alive, the two files will be merged in bug 909839. I'll try out your workaround and provide feedback.
Updated•11 years ago
|
Whiteboard: [perf-reviewed]
Updated•11 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 811876 [details]
https://github.com/mozilla-b2g/gaia/pull/12540
This works for apps such as Settings, but for apps with multiple entry points it fails, such as the Phone app. This is because we're launching an application with the name 'Phone' but the manifest name is 'Communications'.
Attachment #811876 -
Flags: review?(dave.hunt) → review-
Assignee | ||
Comment 4•11 years ago
|
||
Alive: Do you have any suggestions regarding the above comment?
Flags: needinfo?(alive)
Reporter | ||
Comment 5•11 years ago
|
||
That should be a bug inside window manager because it's manifest should be updated to each entry. I'll double check.
BTW I had a discussion with Zac for we should know if an app is running by querying div.appWindow[data-localized-name] in the future.
Flags: needinfo?(alive)
Comment 6•11 years ago
|
||
Is this issue still persistent. Elevating to P2
Flags: needinfo?(alive)
Priority: -- → P2
Reporter | ||
Updated•11 years ago
|
Assignee: alive → nobody
Comment 8•11 years ago
|
||
I'll take this and fix it for v2.0+
Assignee: nobody → zcampbell
Component: Gaia → Gaia::UI Tests
Comment 9•11 years ago
|
||
Attachment #811876 -
Attachment is obsolete: true
Attachment #8423882 -
Flags: review?(florin.strugariu)
Attachment #8423882 -
Flags: review?(dave.hunt)
Updated•11 years ago
|
Assignee: zcampbell → nobody
Updated•11 years ago
|
Attachment #8423882 -
Flags: review?(florin.strugariu)
Attachment #8423882 -
Flags: review?(dave.hunt)
Comment 10•11 years ago
|
||
Comment on attachment 8423882 [details] [review]
github pr
This will now launch from es locale with en names.
and also with es locale with es names.
Expect there are other scenarios where we are not locale compatible but, one at a time!
Attachment #8423882 -
Flags: review?(florin.strugariu)
Attachment #8423882 -
Flags: review?(dave.hunt)
Attachment #8423882 -
Flags: review?(bob.silverberg)
Comment 11•11 years ago
|
||
Would it make sense to use one of the default locales instead of es (we currently have four: ar, fr, en-US and zh-TW)?
Comment 12•11 years ago
|
||
(In reply to Zibi Braniecki [:gandalf] from comment #11)
> Would it make sense to use one of the default locales instead of es (we
> currently have four: ar, fr, en-US and zh-TW)?
My plan is to remove ar, fr and zh-TW in favor of pseudolocales (bug 1011519).
Assignee | ||
Comment 13•11 years ago
|
||
I haven't looked at the patch yet, but did notice that it's failing in Travis.
Comment 14•11 years ago
|
||
I chose es because of a special request for this from that country, but there's no reason why we can't use another.
I did all the testing for this on device so there must be some kind of anomaly on desktopb2g. Let me fix it up first and I'll ping y'all.
Comment 15•11 years ago
|
||
Well the reason is that Spanish does not exist on desktopb2g so I'll have to use French in the meantime.
Updated•11 years ago
|
Attachment #8423882 -
Flags: review?(florin.strugariu) → review-
Comment 16•11 years ago
|
||
Comment on attachment 8423882 [details] [review]
github pr
Spanish doesn't exist on desktop profile so I changed to French :)
Attachment #8423882 -
Flags: review- → review?(florin.strugariu)
Assignee | ||
Comment 17•11 years ago
|
||
Comment on attachment 8423882 [details] [review]
github pr
Great to see this working. I've asked a few questions in the pull request as I'd like to understand the changes better before I implement this in b2gperf.
Attachment #8423882 -
Flags: review?(dave.hunt) → review-
Comment 18•11 years ago
|
||
Comment on attachment 8423882 [details] [review]
github pr
I can't resolve this to the satisfaction of review without major re-factor so releasing it to someone with a bit more javascript-fu.
Attachment #8423882 -
Attachment is obsolete: true
Attachment #8423882 -
Flags: review?(florin.strugariu)
Attachment #8423882 -
Flags: review?(bob.silverberg)
Attachment #8423882 -
Flags: review-
Assignee | ||
Comment 19•11 years ago
|
||
I'll take this, I have something working locally.
Assignee: nobody → dave.hunt
Assignee | ||
Comment 20•11 years ago
|
||
Credit to :zac for the solution here, I just helped with some of the JavaScript. This will need squashing before committing, and also needs further testing.
Attachment #8426252 -
Flags: review?(bob.silverberg)
Assignee | ||
Comment 21•11 years ago
|
||
I've triggered an adhoc job http://selenium.qa.mtv2.mozilla.com:8080/view/B2G%20Hamachi/job/b2g.hamachi.mozilla-central.ui.adhoc/409/ and I'm also continuing to run tests locally.
Note that this isn't the full solution as this bug is about b2gperf. We will also need to release a new version of gaiatest after this lands, and update b2gperf to use the new getAppByURL method and launchPath argument.
Assignee | ||
Comment 22•11 years ago
|
||
Comment on attachment 8426252 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/19482
Alive: Would you also be free to look over this?
Attachment #8426252 -
Flags: review?(alive)
Reporter | ||
Comment 23•11 years ago
|
||
Comment on attachment 8426252 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/19482
Looks like you find a solution doesn't need window manager support. Thanks.
Attachment #8426252 -
Flags: review?(alive) → review+
Comment 24•11 years ago
|
||
Comment on attachment 8426252 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/19482
The unit tests pass fine with these changes.
Attachment #8426252 -
Flags: review?(bob.silverberg) → review+
Comment 26•11 years ago
|
||
Merged:
https://github.com/mozilla-b2g/gaia/commit/ef5c6232898fcc41c375cad892265e511cd1977e
I don't think we need this on v2.0 right now but if requested we could uplift it.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Whiteboard: [c=automation p= s= u=] → [c=automation p= s=2014.07.04.t u=]
Updated•11 years ago
|
Target Milestone: --- → 2.0 S5 (4july)
Assignee | ||
Comment 27•11 years ago
|
||
Uplifted to v2.0:
https://github.com/mozilla-b2g/gaia/commit/8277815063c22c887173287326834672d39e00e1
status-b2g-v2.0:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•