Skip to content

chore: scope toolbox click test to the toolbox under test - #10253

Merged
mikeharv merged 3 commits into
RaspberryPiFoundation:mainfrom
mikeharv:scope-toolbox-click
Aug 10, 2026
Merged

chore: scope toolbox click test to the toolbox under test#10253
mikeharv merged 3 commits into
RaspberryPiFoundation:mainfrom
mikeharv:scope-toolbox-click

Conversation

@mikeharv

Copy link
Copy Markdown
Contributor

The basics

The details

Proposed Test Changes

  • Update Category clicked -> Should select category to use this.toolbox.getToolboxItems()[0] / getClickTarget() instead of a document-wide .blocklyToolboxCategory query.
  • Avoids potential failures when earlier tests leave toolbox category nodes in the document

Reason for Changes

A document-wide lookup for .blocklyToolboxCategory can grab leftover nodes from earlier tests that focused a toolbox, leaving item undefined. This can be seen at #10215 with this failure: https://github.com/RaspberryPiFoundation/blockly/actions/runs/30694878852/job/93505795630?pr=10215

This change unblocks the PR linked above.

@mikeharv
mikeharv requested a review from a team as a code owner August 10, 2026 17:44
@mikeharv
mikeharv requested a review from gonfunko August 10, 2026 17:44
@github-actions github-actions Bot added the PR: chore General chores (dependencies, typos, etc) label Aug 10, 2026
@mikeharv
mikeharv merged commit 63a5013 into RaspberryPiFoundation:main Aug 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: chore General chores (dependencies, typos, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants