Chore: Refactor dataviz aria-label e2e selectors to data-testid (#78938)

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
This commit is contained in:
Khushi Jain
2023-12-17 05:40:04 +05:30
committed by GitHub
parent dba690d653
commit 54dc5846c2
14 changed files with 30 additions and 39 deletions

View File

@@ -64,7 +64,7 @@ export const Components = {
exemplarsAddButton: 'Add exemplar config button',
internalLinkSwitch: 'Internal link switch',
},
exemplarMarker: 'Exemplar marker',
exemplarMarker: 'data-testid Exemplar marker',
},
},
Menu: {
@@ -113,7 +113,7 @@ export const Components = {
valueV2: 'data-testid Bar gauge value',
},
PieChart: {
svgSlice: 'Pie Chart Slice',
svgSlice: 'data testid Pie Chart Slice',
},
Text: {
container: () => '.markdown-html',
@@ -126,7 +126,7 @@ export const Components = {
},
},
VizLegend: {
seriesName: (name: string) => `VizLegend series ${name}`,
seriesName: (name: string) => `data-testid VizLegend series ${name}`,
},
Drawer: {
General: {
@@ -353,8 +353,8 @@ export const Components = {
matchOperatorSelect: 'Select match operator',
},
ValuePicker: {
button: (name: string) => `Value picker button ${name}`,
select: (name: string) => `Value picker select ${name}`,
button: (name: string) => `data-testid Value picker button ${name}`,
select: (name: string) => `data-testid Value picker select ${name}`,
},
Search: {
/**
@@ -392,7 +392,7 @@ export const Components = {
buttonV2: (name: string) => `data-testid Call to action button ${name}`,
},
DataLinksContextMenu: {
singleLink: 'Data link',
singleLink: 'data-testid Data link',
},
CodeEditor: {
container: 'data-testid Code editor container',