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: Rename getByTestIdOrAriaLabel to getByGrafanaSelector #832

Merged
merged 5 commits into from
Apr 3, 2024

Conversation

sunker
Copy link
Contributor

@sunker sunker commented Mar 20, 2024

What this PR does / why we need it:

This PR introduces deprecates the getByTestIdOrAriaLabel and introduces a getByGrafanaSelector method instead. The getByGrafanaSelector method works in the same way as the getByTestIdOrAriaLabel method - it's just a name change to make its purpose a bit more clear. The getByGrafanaSelector is marked as deprecated, but will still work until we release 1.0.0 of the plugn-e2e package.

Which issue(s) this PR fixes:

Fixes #825

Special notes for your reviewer:

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @grafana/create-plugin@4.5.0-canary.832.708efb9.0
npm install @grafana/plugin-e2e@0.25.0-canary.832.708efb9.0
# or 
yarn add @grafana/create-plugin@4.5.0-canary.832.708efb9.0
yarn add @grafana/plugin-e2e@0.25.0-canary.832.708efb9.0

@sunker sunker requested a review from mckn March 20, 2024 08:28
@sunker sunker requested a review from a team as a code owner March 20, 2024 08:28
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 changed the title Plugin E2E: Deprecate getByTestIdOrAriaLabel and introduce getByGrafanaSelector Plugin E2E: Rename getByTestIdOrAriaLabel to getByGrafanaSelector Mar 20, 2024
@sunker sunker added minor Increment the minor version when merged release Create a release when this pr is merged labels Mar 20, 2024
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!

@sunker sunker merged commit cc16775 into main Apr 3, 2024
21 checks passed
@sunker sunker deleted the plugin-e2e/change-name-of-selector-method branch April 3, 2024 08:04
@grafana-plugins-platform-bot
Copy link

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

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

Bug: getByTestIdOrAriaLabel does not work data-testid
2 participants