Skip to content

Fix test projects: upper-case colour and share URLs - #5262

Open
dmetzner wants to merge 1 commit into
Catrobat:developfrom
dmetzner:fix/test-projects-color-case-and-domain
Open

dmetzner wants to merge 1 commit into
Catrobat:developfrom
dmetzner:fix/test-projects-color-case-and-domain

Conversation

@dmetzner

Copy link
Copy Markdown
Contributor

Five projects in catroid/src/androidTest/assets/catrobatTests are out of date:

  • bricks/looks/testChangeSize, bricks/looks/testDeleteWebLook, colorAtXY/testColorAtXYOutsideStage and colorAtXY/testColorAtXYWithoutLooks expect #ffffff from "color at x y". Since CATROID-1613 Fix ColorDetection ignoring z-index #5041 the sensor returns upper case (#FFFFFF), so they fail. They now expect #FFFFFF.
  • formula/testNumberOfLooks and bricks/looks/testDeleteWebLook load looks from https://catrob.at/penguin and /racoon. Catrobat no longer owns that domain. They now load two images from share's media library (https://share.catrobat.org/resources/media/<id>.png, public, catrobat.org is already a trusted domain).

Only the code.xml (and undo_code.xml) inside the archives changed; the other entries are copied unchanged.

Found by running all catrobatTests projects in the browser player on share (Catrobat/Catroweb, player/), which plays them with Catroid's engine.

🤖 Generated with Claude Code

Since Catrobat#5041 "color at x y" returns upper-case hex (#FFFFFF), but four
catrobatTests projects still expect #ffffff and fail. Two test projects
load looks from catrob.at, which Catrobat no longer owns; they now load
two media library images from share.catrobat.org.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

1 participant