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

Plugin E2E: Add expect matcher for alert box #610

Merged
merged 5 commits into from
Dec 19, 2023
Merged

Conversation

sunker
Copy link
Contributor

@sunker sunker commented Dec 18, 2023

What this PR does / why we need it:

Ideally in the data source config page, we'd want to assert that a config is valid by looking at the response for the call to the health endpoint in the plugin backend. However, not all data source plugins has a backend, and in the case they don't make use of a ds proxy either, we need another way of asserting that data source config was successful or not. This PR adds an expect matcher to assert that a certain alert box is present in the page.

Which issue(s) this PR fixes:
Part of #576

Fixes #

Special notes for your reviewer:

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @grafana/plugin-e2e@0.0.3-canary.610.b925ceb.0
# or 
yarn add @grafana/plugin-e2e@0.0.3-canary.610.b925ceb.0

@sunker sunker requested a review from a team as a code owner December 18, 2023 15:00
@sunker sunker requested review from mckn and removed request for a team December 18, 2023 15:00
Copy link

github-actions bot commented Dec 18, 2023

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

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

@sunker sunker requested review from jackw and academo December 18, 2023 15:00
@sunker sunker mentioned this pull request Dec 18, 2023
6 tasks
@sunker sunker added patch Increment the patch version when merged release Create a release when this pr is merged labels Dec 18, 2023
@sunker sunker merged commit ac2faaf into main Dec 19, 2023
19 checks passed
@sunker sunker deleted the plugin-e2e/expect-alert branch December 19, 2023 08:36
@grafana-plugins-platform-bot grafana-plugins-platform-bot bot added the released This issue/pull request has been released. label Dec 19, 2023
@grafana-plugins-platform-bot
Copy link

🚀 PR was released in @grafana/plugin-e2e@0.2.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
Development

Successfully merging this pull request may close these issues.

2 participants