Closed Bug 1148267 Opened 11 years ago Closed 8 years ago

Provide wrap function for system app features

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: pyang, Unassigned)

References

Details

System app features such like turn on/off screen, lock/unlock or others need to call switch_to_frame frequently. Currently ui tests expects users to call switch_to_frame() explicitly and maintain frame state by their own. in bug 1147731, somehow providing a way to automatically switch to system app, invoke function and then go back to displayed app. However, I am not sure user should expect he's in displayed app by default. Based on gaia's design, some function may be only viewable in system app, which is not intuitive to test developers. The easiest way might be to create a wrap function or decorator and make sure these are only invoked in system app scope.
Depends on: 1147731
See also bug 1115905, it's more or less not solvable, currently, from what I understood, because we don't have a way of saving state of all the nested frames and restoring those (although, is that happening often? I don't think so).
See Also: → 1115905
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.