Skip to content

feat(plugin-e2e): fetch e2e-selectors from Grafana at runtime behind a flag#2746

Draft
sunker wants to merge 1 commit into
mainfrom
feat/plugin-e2e-runtime-selectors
Draft

feat(plugin-e2e): fetch e2e-selectors from Grafana at runtime behind a flag#2746
sunker wants to merge 1 commit into
mainfrom
feat/plugin-e2e-runtime-selectors

Conversation

@sunker

@sunker sunker commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Adds an opt-in runtime path to the selectors fixture. With PLUGIN_E2E_RUNTIME_SELECTORS=true it fetches /public/e2e-selectors.js from the Grafana under test and resolves from that, falling back to the bundled @grafana/e2e-selectors (quiet on 404, warns otherwise). Off by default, so no change for consumers. This keeps plugin e2e tests in sync with the Grafana under test without the nightly npm dist-tag.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@sunker sunker force-pushed the feat/plugin-e2e-runtime-selectors branch from 6f0c516 to 1dc7233 Compare June 26, 2026 08:44
@grafana-catalog-project-bot grafana-catalog-project-bot Bot moved this from 📬 Triage to 🧑‍💻 In development in Grafana Catalog Team Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🧑‍💻 In development

Development

Successfully merging this pull request may close these issues.

1 participant