Closed Bug 1191476 Opened 9 years ago Closed 7 years ago

Clear data and prefs between each test

Categories

(Firefox for iOS :: Build & Test, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bnicholson, Unassigned)

Details

Since KIF uses the same app instance for every test, tests will begin with the end state of previous tests. This can cause failures when running multiple tests in succession; for instance, testDeleteHistoryItemFromLargeList populates history with over 100 pages, so any following tests that look for a certain cell in the history list will fail since the list will already be full.

We might want to create helper methods that clear all prefs and data during the setUp or tearDown of any test. Alternatively, to cut back on the boilerplate code, we could create a subclass of KIFTestCase that does this for us, which all of our UI tests would extend.
We have ways of doing this now.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.