Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear app data before all e2e tests #1632

Merged
merged 5 commits into from
Mar 18, 2022
Merged

Clear app data before all e2e tests #1632

merged 5 commits into from
Mar 18, 2022

Conversation

twometresteve
Copy link
Contributor

Goal

Clear app data at the start of each e2e test scenarios, preventing them from bleeding into each other.

Design

Test scenarios can occasionally flake because a full reset is not performed between each test scenario. A new button on the UI allows all Bugsnag data to be cleared.

Changeset

A Background step in every .feature file uses Appium to press the new button, clearing Bugsnag data.

I have also taken the opportunity to consistently format all .feature files. Although the diff looks like scenarios have changed in some places, only whitespace changes have occurred other than the addition of the Background step.

Testing

Covered by CI and I have manually checked the device logs to verify that the button is pressed.

@twometresteve twometresteve requested a review from kstenerud March 17, 2022 18:20
@twometresteve twometresteve merged commit 58b077c into next Mar 18, 2022
@twometresteve twometresteve deleted the tms/clear-data branch March 18, 2022 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants