mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Refactor dataviz aria-label e2e selectors to data-testid (#78938)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
This commit is contained in:
@@ -97,7 +97,7 @@ describe('OrganisationSwitcher', () => {
|
||||
},
|
||||
});
|
||||
|
||||
expect(screen.getByRole('button', { name: /change organization/i })).toBeInTheDocument();
|
||||
expect(screen.getByTestId('data-testid Value picker button Change organization')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should not render and not try to get user organizations if not signed in', () => {
|
||||
|
||||
@@ -10,7 +10,7 @@ describe('AddLayerButton', () => {
|
||||
it('renders AddLayerButton', () => {
|
||||
renderScenario({});
|
||||
|
||||
const button = screen.getByLabelText(selectors.components.ValuePicker.button(testLabel));
|
||||
const button = screen.getByTestId(selectors.components.ValuePicker.button(testLabel));
|
||||
|
||||
expect(button).toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user