mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Migrate from aria-label to data-testid for selectors (#78554)
* migrate from aria-label to data-testid for selectors * fix e2e tests with shared components * fix e2e tests with more shared components * pass data-testid to SelectBase component * pass data-testid to value container and traverse the dom to access the input in e2e
This commit is contained in:
committed by
GitHub
parent
f41a0559fa
commit
a9f4ffab5d
@@ -61,8 +61,8 @@ export const Components = {
|
||||
Prometheus: {
|
||||
configPage: {
|
||||
connectionSettings: 'Data source connection URL',
|
||||
exemplarsAddButton: 'Add exemplar config button',
|
||||
internalLinkSwitch: 'Internal link switch',
|
||||
exemplarsAddButton: 'data-testid Add exemplar config button',
|
||||
internalLinkSwitch: 'data-testid Internal link switch',
|
||||
},
|
||||
exemplarMarker: 'data-testid Exemplar marker',
|
||||
},
|
||||
@@ -345,12 +345,12 @@ export const Components = {
|
||||
TraceViewer: {
|
||||
spanBar: 'data-testid SpanBar--wrapper',
|
||||
},
|
||||
QueryField: { container: 'Query field' },
|
||||
QueryField: { container: 'data-testid Query field' },
|
||||
QueryBuilder: {
|
||||
queryPatterns: 'Query patterns',
|
||||
labelSelect: 'Select label',
|
||||
valueSelect: 'Select value',
|
||||
matchOperatorSelect: 'Select match operator',
|
||||
queryPatterns: 'data-testid Query patterns',
|
||||
labelSelect: 'data-testid Select label',
|
||||
valueSelect: 'data-testid Select value',
|
||||
matchOperatorSelect: 'data-testid Select match operator',
|
||||
},
|
||||
ValuePicker: {
|
||||
button: (name: string) => `data-testid Value picker button ${name}`,
|
||||
|
||||
Reference in New Issue
Block a user