Merge pull request #11360 from backstage/renovate/testing-library-user-event-14.x

chore(deps): update dependency @testing-library/user-event to v14
This commit is contained in:
Fredrik Adelöw
2022-05-11 09:53:50 +02:00
committed by GitHub
5 changed files with 9 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-codescene': patch
---
Updated dependency `@testing-library/user-event` to `^14.0.0`.
@@ -109,7 +109,7 @@ describe('<SelectedKindsFilter/>', () => {
);
await userEvent.click(getByRole('combobox'));
userEvent.tab();
await userEvent.tab();
await waitFor(() => {
expect(onChange).toBeCalledWith(undefined);
@@ -101,7 +101,7 @@ describe('<SelectedRelationsFilter/>', () => {
);
await userEvent.click(getByRole('combobox'));
userEvent.tab();
await userEvent.tab();
await waitFor(() => {
expect(onChange).toBeCalledWith(undefined);
@@ -67,7 +67,7 @@ describe('<PreparePullRequestForm />', () => {
);
await act(async () => {
userEvent.clear(getByLabelText('Main Field'));
await userEvent.clear(getByLabelText('Main Field'));
await userEvent.type(getByLabelText('Main Field'), 'My Text');
await userEvent.click(getByRole('button', { name: /submit/i }));
});
+1 -1
View File
@@ -44,7 +44,7 @@
"@backstage/test-utils": "^1.1.0-next.2",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^13.1.8",
"@testing-library/user-event": "^14.0.0",
"@types/jest": "*",
"@types/node": "*",
"msw": "^0.35.0",