This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
Visual query builder: Update e2e selectors #111
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP
Trough the migration of visual query builder to this repository, grafana/grafana#78554 was merged which changes code related to e2e tests - instead of
aria labels
it usesdata-testid
inLabelFilterItem
.This caused the issue with e2e where I couldn't merge grafana/grafana#81380 as e2e test was failing.
In this PR I am:
@grafana/e2e-selectors
as peer and dev dependency as it is with@grafana/data
,@grafana/ui
, ...inputIds
weren't unique, so I updated the logicuseRef
to keepids
consistent and not change on every re-renderDataQuery
from@grafana/data
. If we want to use it in the future fromschema
, we need to add it as dev/peer dependency.Passing e2e test with updated component:
e2e.mov