Closed
Bug 1116758
Opened 10 years ago
Closed 7 years ago
"#link_button" refers to 2 elements in the Contacts details DOM
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(b2g-v2.2 affected)
RESOLVED
WONTFIX
| Tracking | Status | |
|---|---|---|
| b2g-v2.2 | --- | affected |
People
(Reporter: jlorenzo, Unassigned)
References
Details
Discovered while writing the test in bug 1086687.
2 buttons shares the same ID (link_button) in the contacts details page. This prevents the page object tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/contact_details.py from using it: Marionette can't tap on the displayed button.
Comment 2•10 years ago
|
||
that's due to the usage of templates. You will have to use another mechanism to get access to that button, for instance using a selector like
#social-template-0 .icon-link
Flags: needinfo?(jmcf)
| Reporter | ||
Comment 3•10 years ago
|
||
Okay, we use a similar selector for now.
I see one issue here though. I don't see the point of defining ID inside a template (like in the contact details page[1]) if we can't actually use them because they're not unique along the page. Why do we keep them?
[1] https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/contacts/elements/details.html#L32-L50
Comment 4•10 years ago
|
||
(In reply to Johan Lorenzo [:jlorenzo] (QA) from comment #3)
> Okay, we use a similar selector for now.
>
> I see one issue here though. I don't see the point of defining ID inside a
> template (like in the contact details page[1]) if we can't actually use them
> because they're not unique along the page. Why do we keep them?
>
> [1]
> https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/contacts/
> elements/details.html#L32-L50
probably we could get rid of ids from templates
Comment 5•10 years ago
|
||
It looks like the whole Facebook link/unlink UI has been removed now from Gaia, so I guess this bug can be resolved wfm?
I still see some mentioning of "link_button" here:
http://mxr.mozilla.org/gaia/source/apps/communications/contacts/test/unit/mock_details_dom.js.html?force=1#59
http://mxr.mozilla.org/gaia/source/apps/communications/contacts/test/unit/mock_contacts_index.html?force=1#154
It looks like this is still used in some unit test or something? I guess it can be removed there as well.
Comment 6•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•