CATROID-1477 Fix: WhenBackgroundChangesToBrickTest and Tutorial Handling#5187
Open
harshsomankar123-tech wants to merge 7 commits intoCatrobat:developfrom
Open
Conversation
dorianpercic
approved these changes
Apr 5, 2026
reichli
requested changes
Apr 6, 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.



JIRA- TICKET :https://catrobat.atlassian.net/browse/CATROID-1477
Description
This pull request addresses stability issues and flakiness in the
WhenBackgroundChangesToBrickTestinstrumentation test. It also modernizes the codebase by refactoring the test from Java to Kotlin as requested by the maintainers.Changes
Kotlin Refactor (New)
WhenBackgroundChangesToBrickTest.javatoWhenBackgroundChangesToBrickTest.ktto comply with the project's modernization goals.@Suppress("SwallowedException")to thewaitOnViewAndClickhelper to resolve GitHub Advanced Security warnings while maintaining the necessary retry-loop logic.Lifecycle Management
Intents.init()andIntents.release()to @before and @after methods to guarantee that Espresso-Intents are correctly handled even in the event of a test failure.PocketPaint Tutorial Handling
pocketpaint_btn_skip) upon PocketPaint launch, ensuring the drawing surface is accessible for interaction.Enhanced Synchronization
waitFor(isDisplayed())forpocketpaint_drawing_surface_viewto stabilize transitions.pressBack()to allowonActivityResultto finish file operations before assertions occur.CustomActions.wait()to be explicit, resolving naming conflicts with the standardObject.wait()in Java/Kotlin.Your checklist for this pull request
Please review the contributing guidelines and wiki pages of this repository.