Hidden/directional characters in the string cause `select` wrapper method to fail.

RESOLVED WORKSFORME

Status

defect
P4
normal
RESOLVED WORKSFORME
6 years ago
3 years ago

People

(Reporter: zcampbell, Unassigned, Mentored)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [gaia-ui-test][lang=py])

Reporter

Description

6 years ago
In the Settings app when changing the language of Firefox OS contains hidden directional strings that make strings appear ltr/rtl depending on the language listed.
They make make string matching fail because they don't match the expected string.

You can check the presence of the directional strings by using "find_element" using Marionette and then checking the length of the .text attribute of the text. 

It's not clear whether Marionette should strip out the characters when returning the `.text` or even how we can do it at the Python level.

We have to use a different `select` wrapper to get around this.

https://github.com/mozilla-b2g/gaia/blob/master/tests/python/gaia-ui-tests/gaiatest/tests/functional/settings/test_settings_change_language.py#L17
Whiteboard: [gaia-ui-test][mentor=zac][lang=py]
Reporter

Comment 1

5 years ago
After the dependent bug 883555 is resolved, remove this extra select wrapper because the default one in base.py should work.
Depends on: 883555
Mentor: zcampbell
Whiteboard: [gaia-ui-test][mentor=zac][lang=py] → [gaia-ui-test][lang=py]
QA Whiteboard: [fxosqa-auto-backlog+]
is this bug still active, I am under the impression firefox os is not an active project anymore.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.