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: Use new e2e selectors #833

Merged
merged 7 commits into from
Mar 26, 2024
Merged

Conversation

sunker
Copy link
Contributor

@sunker sunker commented Mar 20, 2024

What this PR does / why we need it:

This PR replaces a few unsafe locators with proper selectors defined grafana/e2e-selectors (and in the versioned selectors in plugin-e2e). The new selectors where recently added to the main branch of Grafana, hence we'll have to use the unsafe locator for versions before 11. This should be fine though as no one will ever backport selector updates to older version of Grafana.

Also updating related docs.

Which issue(s) this PR fixes:

Fixes #724

Special notes for your reviewer:
The selectors were added to Grafana in the following PRs.

grafana/grafana#83248
grafana/grafana#83246
grafana/grafana#83240
grafana/grafana#83230

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @grafana/create-plugin@4.3.0-canary.833.13a3f6f.0
npm install @grafana/plugin-e2e@0.23.0-canary.833.13a3f6f.0
# or 
yarn add @grafana/create-plugin@4.3.0-canary.833.13a3f6f.0
yarn add @grafana/plugin-e2e@0.23.0-canary.833.13a3f6f.0

@sunker sunker changed the title Plugin e2e/use new selectors Plugin E2E: Use new e2e selectors Mar 20, 2024
Copy link

github-actions bot commented Mar 20, 2024

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 Mar 20, 2024
@sunker sunker marked this pull request as ready for review March 20, 2024 16:11
@sunker sunker requested a review from a team as a code owner March 20, 2024 16:11
@sunker sunker requested review from mckn and removed request for a team March 20, 2024 16:11
@@ -37,6 +37,7 @@ nx-cloud.env

# End to End tests
playwright-report/
packages/plugin-e2e/test-results/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All of a sudden Playwright started generating zip files related to reports. Anyway, this dir should definitely be ignored.

annotationsChoosePanelInput: string;
};
Tooltip: {
container: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These selectors were not used in plugin-e2e.

Copy link
Collaborator

@mckn mckn left a comment

Choose a reason for hiding this comment

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

LGTM! Lots of new things in G11.

@sunker sunker merged commit d2d8b14 into main Mar 26, 2024
21 checks passed
@sunker sunker deleted the plugin-e2e/use-new-selectors branch March 26, 2024 08:03
@grafana-plugins-platform-bot
Copy link

🚀 PR was released in @grafana/create-plugin@4.4.0, @grafana/plugin-e2e@0.24.0 🚀

@grafana-plugins-platform-bot grafana-plugins-platform-bot bot added the released This issue/pull request has been released. label Mar 26, 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
Archived in project
Development

Successfully merging this pull request may close these issues.

Feat: Add proper selectors for UI components
2 participants