Skip to content

refactor: use column references instead of ID lookup#9189

Open
sissbruecker wants to merge 5 commits intomainfrom
refactor/grid-testbench-column-references
Open

refactor: use column references instead of ID lookup#9189
sissbruecker wants to merge 5 commits intomainfrom
refactor/grid-testbench-column-references

Conversation

@sissbruecker
Copy link
Copy Markdown
Contributor

@sissbruecker sissbruecker commented Apr 24, 2026

GridColumnElement is currently not an actual TestBenchElement, but rather "virtual" element that allows referencing columns in the grid via IDs that are generated per column by GridElement whenever columns are accessed. The JavaDoc mentions something about polyfilled browsers, but it seems this this is obsolete and using column references works fine now.

This refactors GridColumnElement to be a TestBenchElement, removes the old infrastructure around ID handling and simplifies several methods that work with columns. Includes the same change for Grid Pro TestBench helpers.

@sissbruecker sissbruecker marked this pull request as ready for review April 24, 2026 12:44
private GridElement grid;
private Long __generatedId;

public GridColumnElement(Long __generatedId, GridElement grid) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided to drop the constructor. It's public, but I have a hard time seeing how someone might have directly used this.

@sonarqubecloud
Copy link
Copy Markdown

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