Skip to content

Create Plugin: Add agentic instructions for e2e testing#2478

Draft
sunker wants to merge 5 commits intomainfrom
create-plugin/e2e-agents
Draft

Create Plugin: Add agentic instructions for e2e testing#2478
sunker wants to merge 5 commits intomainfrom
create-plugin/e2e-agents

Conversation

@sunker
Copy link
Contributor

@sunker sunker commented Feb 24, 2026

What this PR does / why we need it:

AI coding agents sometimes fall back to raw Playwright code when writing e2e tests because they don't know the grafana/plugin-e2e API. This adds an e2e-testing.md agent instructions file to .config/AGENTS/ that teaches them how to use fixtures, page models, selectors and matchers idiomatically.

The file lives in .config/AGENTS/ rather than tests/ because most guidance is shared across plugin types and we want it to stay under our control. Plugin-type-specific sections are conditionally included via handlebars.

Which issue(s) this PR fixes:

Part of #2473
Fixes #

Special notes for your reviewer:

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @grafana/create-plugin@6.11.0-canary.2478.22387820845.0
# or 
yarn add @grafana/create-plugin@6.11.0-canary.2478.22387820845.0

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2026

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged and will trigger a new minor release.
NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

@sunker sunker added minor Increment the minor version when merged release Create a release when this pr is merged labels Feb 24, 2026
@grafana-plugins-platform-bot grafana-plugins-platform-bot bot moved this from 📬 Triage to 🔬 In review in Grafana Catalog Team Feb 24, 2026
@sunker sunker force-pushed the create-plugin/e2e-agents branch from 3a388ca to e70d868 Compare February 25, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Increment the minor version when merged release Create a release when this pr is merged

Projects

Status: 🔬 In review

Development

Successfully merging this pull request may close these issues.

1 participant