mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Chore: Reduce pa11y-ci errors (#41787)
* Chore: moves alert to test-id * Chore: moves Dashboard navigation to test-id * Chore: moves Bar gauge value to data-testid * Chore move Folder picker select container to data-testid * Chore: moves Time zone picker select container to data-testid * Chore: moves Choose starting day of the week to data-testid * Chore: change tabIndex on search input * Chore: moves various search related aria-lables to data-testid * Chore: connects label to select input on alerting page * Chore: connects TimeZonePicker and WeekStartPicker with labels * Chore: moves CallToActionButton to data-testid * Chore: move user home preferences select to data-testid * Chore: lower all thresholds
This commit is contained in:
@@ -87,8 +87,8 @@ const defaultProps: Props = {
|
||||
};
|
||||
|
||||
function getSelectors() {
|
||||
const dashboardSelect = () => screen.getByLabelText(/user preferences home dashboard drop down/i);
|
||||
const timepickerSelect = () => screen.getByLabelText(selectors.components.TimeZonePicker.container);
|
||||
const dashboardSelect = () => screen.getByTestId('User preferences home dashboard drop down');
|
||||
const timepickerSelect = () => screen.getByTestId(selectors.components.TimeZonePicker.containerV2);
|
||||
const teamsTable = () => screen.getByRole('table', { name: /user teams table/i });
|
||||
const orgsTable = () => screen.getByRole('table', { name: /user organizations table/i });
|
||||
const sessionsTable = () => screen.getByRole('table', { name: /user sessions table/i });
|
||||
|
||||
Reference in New Issue
Block a user