test: centralize created-user teardown[WPB-24885]#4753
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4753 +/- ##
========================================
Coverage 50.51% 50.51%
========================================
Files 603 603
Lines 20797 20797
Branches 3344 3344
========================================
Hits 10505 10505
Misses 9305 9305
Partials 987 987 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
MohamadJaara
approved these changes
Apr 23, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



https://wearezeta.atlassian.net/browse/WPB-24885
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
PR Description
Centralized test teardown into a shared cleanupCreatedUsers(...) helper in BaseUiTest.
Made the shared teardown clearly separate three actions: remove backend clients/devices, delete teams, and optionally delete standalone personal users.
Updated ClientUserManager so created users are properly tracked in createdUsers when they are created through shared helper paths.
Registered created team owners, team members, and backend-created personal users into shared cleanup tracking.
Switched the team-based Android tests to use the shared cleanup path instead of repeating per-test manual delete logic.
Used deletePersonalUsers = true only where a standalone personal account is created and team deletion alone is not enough.
Fixed the Okta cleanup bug in SSO setup by reusing the same OktaApiClient instance during app creation and teardown instead of creating a throwaway client.
Issues
Briefly describe the issue you have solved or implemented with this pull request. If the PR contains multiple issues, use a bullet list.
Causes (Optional)
Briefly describe the causes behind the issues. This could be helpful to understand the adopted solutions behind some nasty bugs or complex issues.
Solutions
Briefly describe the solutions you have implemented for the issues explained above.
Dependencies (Optional)
If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.