Closed Bug 830528 Opened 11 years ago Closed 11 years ago

Trusty UI needs comprehensive test suite

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jedp, Unassigned)

Details

The TrustedUIManager is an integral component on which Marketplace and Identity depend.  We should have a marionette test suite that works for developers on desktop (for testing new features and guarding against regressions) as well as for QA on device.

There are already some Identity-oriented tests exercising the Trusty UI in test_apps/uitest and gaia-ui-test, but a fuller suite is needed that is not tied to either Marketplace or Identity.

Some tests we should have include:
- crashing an app that's spawned a trusty ui
- crashing the trusty ui
- closing an intermediate layer in the trusty ui stack (see Bug 828182)
- canceling the ui by user action (the x button)
- canceling the ui by application (calling close())
- doing any or all of the above with more than one app spawning the ui

Note that the TrustedUIManager can only be launched by chrome, so most of the code may need to reside in gaia-ui-tests, because marionette can execute JS in chrome context but gaia test_apps/uitest cannot
This doesn't belong in bugzilla. Issues like these are tracked in github, not bugzilla. Please file this in https://github.com/mozilla/gaia-ui-tests/issues?state=open.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.