Closed Bug 1331120 Opened 9 years ago Closed 9 years ago

Use GameplayKit to make XCUITests more useful.

Categories

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

Other
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jhugman, Assigned: jhugman)

Details

Attachments

(1 external file)

Our XCUITests are brittle and repetitive; they are highly dependent on the app, and lots of navigation is required to get to the portion of the app you want to test. Furthermore, the navigation is also needed for screenshots. If the app changes, then multiple tests fail, and the fixes need to be made in one place. This bug introduces a ScreenGraph, which helps by sharing the app's screen graph, and then using GameplayKit's path finding to navigate around the app.
Assignee: nobody → jhugman
Status: NEW → ASSIGNED
Initial commit, and reworked AuthenticationTest and HomepageSettingTest.
Attachment #8826772 - Flags: review?(npark)
Attachment #8826772 - Flags: review?(fpatel)
Comment on attachment 8826772 [details] [review] PR https://github.com/mozilla-mobile/firefox-ios/pull/2319 It made the tests wonderfully simple and straightforward, thanks for introducing me to Gameplaykit. As I mentioned in Github, adding checks prior to ui element interaction calls would make test failure debugging simpler, but we can do that on future PRs.
Attachment #8826772 - Flags: review?(npark) → review+
Attachment #8826772 - Flags: review?(fpatel) → review+
Merged.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: