-
Notifications
You must be signed in to change notification settings - Fork 108
[MBL-18749][Student][Teacher] - Fix workmanager related breaking E2E tests #3275
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
Closed
kdeakinstructure
wants to merge
17
commits into
master
from
MBL-18749-fix-other-workmanager-e2e-tests
Closed
[MBL-18749][Student][Teacher] - Fix workmanager related breaking E2E tests #3275
kdeakinstructure
wants to merge
17
commits into
master
from
MBL-18749-fix-other-workmanager-e2e-tests
Conversation
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
…FileAssignmentWithCommentE2E and testMediaCommentsE2E). refs: MBL-18749 affects: Student, Teacher release note:
Contributor
* Initial plan * Fix: Handle null testDriver in handleWorkManagerTask Co-authored-by: kdeakinstructure <[email protected]> * Restore private-data symlink Co-authored-by: kdeakinstructure <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: kdeakinstructure <[email protected]>
Contributor
Contributor
Contributor
…ind any workinfos in the second test). refs: MBL-19357 affects: Student, Teacher, Parent release note:
Contributor
Contributor
Contributor
…elated test case). refs: MBL-19357 affects: Student, Teacher, Parent release note:
Contributor
Contributor
Contributor
refs: MBL-19357 affects: Student, Teacher, Parent release note:
Contributor
Contributor
Contributor
refs: MBL-18749 affects: Student, Teacher, Parent release note:
Contributor
Contributor
Contributor
refs: MBL-18749 affects: Student, Teacher, Parent release note:
Contributor
📊 Code Coverage Report✅ Student
✅ Teacher
✅ Pandautils
📈 Overall Average
|
Contributor
Contributor
… tests). refs: MBL-18749 affects: Student, Teacher, Parent release note:
Contributor
Contributor
Contributor
…other (Initialization refactor). refs: MBL-18749 affects: Student release note:
Contributor
Contributor
Contributor
…-initialization in interaction tests). refs: MBL-18749 affects: Student release note:
Contributor
Contributor
Contributor
…thod. Put E2E annotation on some login E2E tests. refs: MBL-18749 affects: Student release note:
Contributor
Contributor
Contributor
… be a bit slower than locally. refs: MBL-18749 affects: Student release note:
Contributor
Contributor
Contributor
…tion might causing a problem among shards). refs: MBL-18749 affects: Student, Teacher, Parent release note:
refs: MBL-18749 affects: Student, Teacher, Parent release note:
Contributor
Contributor
Contributor
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.
Summary
This PR fixes WorkManager-related E2E test failures in Student and Teacher apps by improving WorkManager test infrastructure and handling background task execution in tests.
Key Changes
WorkManager Test Infrastructure
TestAppManager.ktwith proper WorkManager initialization and configuration for teststestDriverfield for controlling WorkManager constraints in test environmentConfiguration.BuilderwithsetTaskExecutorandsetExecutortestDriveris unavailable in CI environmentTest Execution Improvements
handleWorkManagerTask()helper function to properly handle nulltestDriverscenariossleep()calls with properhandleWorkManagerTask()calls for synchronization@FixMethodOrder(MethodSorters.NAME_ASCENDING)toAssignmentsE2ETestfor consistent test orderingFixed Tests
testPercentageFileAssignmentWithCommentE2E- Now properly waits for SubmissionWorker completiontestMediaCommentsE2E- Replaced sleep calls with proper WorkManager task handling@Stubannotations from previously failing testsAPI Enhancements
CourseAPI.getCourse()method withincludeparameter support for fetching detailed course informationConfiguration Updates
Testing
refs: MBL-18749
affects: Student, Teacher
release note: Fixed WorkManager synchronization in E2E tests