Chore: Migrate from aria-label to data-testid in plugin-related tests (#79272)

* Update basicsettings for datasource

* Change aria-label for data-testid

* Update more tests

* Update betterer

* Remove unnecessary data-testid

* Put back aria label for some datasource selectors

* Try to use data-testid with alerts

* Update betterer
This commit is contained in:
Esteban Beltran
2023-12-11 15:05:54 +01:00
committed by GitHub
parent 4751013a91
commit 46142da4db
11 changed files with 19 additions and 39 deletions

View File

@@ -20,7 +20,7 @@ describe('<BasicSettings>', () => {
it('should render component', () => {
setup();
expect(screen.getByRole('textbox', { name: selectors.pages.DataSource.name })).toBeInTheDocument();
expect(screen.getByTestId(selectors.pages.DataSource.name)).toBeInTheDocument();
expect(screen.getByRole('checkbox', { name: /Default/ })).toBeInTheDocument();
});
});