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: Allow provisioningRootDir to be overridden #623

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

sunker
Copy link
Contributor

@sunker sunker commented Dec 20, 2023

What this PR does / why we need it:

When using the readProvision fixture, provisioned files are read from a rootdir. For external plugins, this will most likely always be <projectRoot>/provisioning. However in some projects, you may want to specify an alternative directory for your provisioning files. For example, in core Grafana, you may want to use devenv.

This PR makes it possible to override the default directory for provisioning files. It can be done globally or on a project level in the playwright config, or in an individual test.

Which issue(s) this PR fixes:

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.3.0-canary.623.aedff75.0
# or 
yarn add @grafana/plugin-e2e@0.3.0-canary.623.aedff75.0

@sunker sunker requested a review from a team as a code owner December 20, 2023 13:52
@sunker sunker requested review from academo and removed request for a team December 20, 2023 13:52
Copy link

github-actions bot commented Dec 20, 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 added minor Increment the minor version when merged release Create a release when this pr is merged labels Dec 20, 2023
@@ -15,7 +15,19 @@ import { grafanaE2ESelectorEngine } from './selectorEngine';
import { ExplorePage } from './models/ExplorePage';

export type PluginOptions = {
selectorRegistration: void;
Copy link
Member

Choose a reason for hiding this comment

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

is removing this from the type intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch - should have added a GH comment about this. Yes, it was intentionally removed. It's not an actual fixture option, so it doesn't belong there.

@sunker sunker merged commit 112b840 into main Jan 2, 2024
16 checks passed
@sunker sunker deleted the plugin-e2e/override-provisioning-root-folder branch January 2, 2024 13:37
@grafana-plugins-platform-bot
Copy link

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

@grafana-plugins-platform-bot grafana-plugins-platform-bot bot added the released This issue/pull request has been released. label Jan 2, 2024
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