Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full page image: Fix wait condition for dashboard with rows #542

Merged
merged 6 commits into from
Jul 15, 2024

Conversation

AgnesToulet
Copy link
Contributor

This PR fixes the wait condition for dashboards with rows as it's been broken since this change.

I know that relying on the data-testid is not great, but the test should alert us sooner next time (this should ideally also be covered by an E2E test in Grafana), and this condition is only used when dashboards are not rendered with Scenes (it will be removed when we stop supporting legacy dashboards).

@AgnesToulet AgnesToulet requested review from a team, juanicabanas and evictorero and removed request for a team July 11, 2024 14:03
Copy link
Contributor

@evictorero evictorero left a comment

Choose a reason for hiding this comment

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

Looks good. If I understood correctly, this change make it work for Grafana 11.1 (when the CSS PR was merged) and older versions (since data-testid wasn't introduced in that PR).

@AgnesToulet
Copy link
Contributor Author

Ah good catch, the data-testid was added in 9.1 (in this PR) and the image renderer is still supporting Grafana 8.3.11 so I updated my PR to support both (I don't think it's worth doing a breaking change).

@AgnesToulet AgnesToulet merged commit 08be054 into master Jul 15, 2024
4 checks passed
@AgnesToulet AgnesToulet deleted the fix-full-image-with-rows branch July 15, 2024 07:16
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.

2 participants