diff --git a/.changeset/renovate-9008399.md b/.changeset/renovate-9008399.md new file mode 100644 index 0000000000..64e1dd07a8 --- /dev/null +++ b/.changeset/renovate-9008399.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-codescene': patch +--- + +Updated dependency `@testing-library/user-event` to `^14.0.0`. diff --git a/plugins/catalog-graph/src/components/CatalogGraphPage/SelectedKindsFilter.test.tsx b/plugins/catalog-graph/src/components/CatalogGraphPage/SelectedKindsFilter.test.tsx index 233553620a..e7bf10216f 100644 --- a/plugins/catalog-graph/src/components/CatalogGraphPage/SelectedKindsFilter.test.tsx +++ b/plugins/catalog-graph/src/components/CatalogGraphPage/SelectedKindsFilter.test.tsx @@ -109,7 +109,7 @@ describe('', () => { ); await userEvent.click(getByRole('combobox')); - userEvent.tab(); + await userEvent.tab(); await waitFor(() => { expect(onChange).toBeCalledWith(undefined); diff --git a/plugins/catalog-graph/src/components/CatalogGraphPage/SelectedRelationsFilter.test.tsx b/plugins/catalog-graph/src/components/CatalogGraphPage/SelectedRelationsFilter.test.tsx index 8d5acf282c..6bd740ac9e 100644 --- a/plugins/catalog-graph/src/components/CatalogGraphPage/SelectedRelationsFilter.test.tsx +++ b/plugins/catalog-graph/src/components/CatalogGraphPage/SelectedRelationsFilter.test.tsx @@ -101,7 +101,7 @@ describe('', () => { ); await userEvent.click(getByRole('combobox')); - userEvent.tab(); + await userEvent.tab(); await waitFor(() => { expect(onChange).toBeCalledWith(undefined); diff --git a/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.test.tsx b/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.test.tsx index 20b4bc986e..90a2987958 100644 --- a/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.test.tsx +++ b/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.test.tsx @@ -67,7 +67,7 @@ describe('', () => { ); 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 })); }); diff --git a/plugins/codescene/package.json b/plugins/codescene/package.json index 821c3e30c2..d77581ac6e 100644 --- a/plugins/codescene/package.json +++ b/plugins/codescene/package.json @@ -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",