Skip to content

Multi chart rendering#2750

Merged
labkey-alan merged 3 commits intodevelopfrom
fb_multi_chart_rendering
Oct 20, 2025
Merged

Multi chart rendering#2750
labkey-alan merged 3 commits intodevelopfrom
fb_multi_chart_rendering

Conversation

@labkey-alan
Copy link
Contributor

@labkey-alan labkey-alan commented Oct 16, 2025

Rationale

This PR adds the necessary infrastructure to test for multiple charts on a grid

Related Pull Requests

Changes

  • BootstrapMenu: add menuItemIsDisabled
  • QueryChartDialog: update usages of getChartPanel
  • QueryChartPanelFinder: add required name parameter
  • QueryGrid:
    • Add createChartIsDisbled
    • Add chartIsDisabled
    • Add chartIsSelected
    • Add name argument to closeChart, getChartPanel

Comment on lines +105 to +109
public QueryChartPanelFinder(WebDriver driver, QueryGrid queryGrid, String name)
{
super(driver);
_queryGrid = queryGrid;
_name = name;
Copy link
Member

Choose a reason for hiding this comment

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

The chart name shouldn't be mandatory. The finder should find all of the charts by default and there should be a withName method to specify the name.
QueryChartPanel should probably have a getName method too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But if we only ever want to find a chart by name, then why should it find all by default? Put another way, why make a default that isn't used? Same goes for QueryChartPanel, why add a getName method that isn't used?

Copy link
Member

Choose a reason for hiding this comment

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

That's a fair point, I was mostly commenting on the typical design of component finders. If we ever have other needs for this, refactoring the finder is easy enough.

@labkey-alan labkey-alan force-pushed the fb_multi_chart_rendering branch from b7671f6 to 1570fd7 Compare October 20, 2025 16:37
@labkey-alan labkey-alan merged commit b5d1aed into develop Oct 20, 2025
7 checks passed
@labkey-alan labkey-alan deleted the fb_multi_chart_rendering branch October 20, 2025 21:08
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.

3 participants