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: Harmonise model instantiation and navigation #603

Merged
merged 9 commits into from
Dec 19, 2023

Conversation

sunker
Copy link
Contributor

@sunker sunker commented Dec 15, 2023

What this PR does / why we need it:
Up until now, it has only been possible to instantiate and navigate to annotations, variables, panels etc for new dashboards (/dashboard/new). This is probably all plugin authors need in most cases. However, I want it to be possible to also instantiate all pages with a dashboard uid so it's possible to navigate to an already existing dashboard. This is useful if you for example want to test template variable interpolation in your datasource file, and you want to use a template variable and a query that is using the variable in a provisioned dashboard.

This PR harmonises the constructor method and the goto method for all page models. I'm also adding a few tests that showcases how this pages can be instantiated and navigated to also for an existing dashboard.

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.1.0-canary.603.428a5d1.0
# or 
yarn add @grafana/plugin-e2e@0.1.0-canary.603.428a5d1.0

Copy link

github-actions bot commented Dec 15, 2023

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 force-pushed the plugin-e2e/harmonize-model-instantiation branch from 3f7e67f to f1f8193 Compare December 15, 2023 08:52
@sunker sunker mentioned this pull request Dec 15, 2023
6 tasks
@sunker sunker added the no-changelog Don't include in changelog and version calculations label Dec 15, 2023
@sunker sunker requested review from jackw and academo December 15, 2023 09:10
@sunker sunker changed the title [WIP] Plugin E2E: Harmonise model instantiation and navigation Plugin E2E: Harmonise model instantiation and navigation Dec 15, 2023
@sunker sunker marked this pull request as ready for review December 15, 2023 09:10
@sunker sunker requested a review from a team as a code owner December 15, 2023 09:10
@sunker sunker added minor Increment the minor version when merged release Create a release when this pr is merged and removed no-changelog Don't include in changelog and version calculations labels Dec 19, 2023
@sunker sunker merged commit 196bea6 into main Dec 19, 2023
19 of 21 checks passed
@sunker sunker deleted the plugin-e2e/harmonize-model-instantiation branch December 19, 2023 12:47
@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
minor Increment the minor 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