If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Clear data and prefs between each test

RESOLVED FIXED

Status

()

Firefox for iOS
Build & Test
RESOLVED FIXED
2 years ago
4 months ago

People

(Reporter: bnicholson, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
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
Last Resolved: 4 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.