From 5168318000ec288d60919e444edfce7ff69498f3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:02:10 +0000 Subject: [PATCH] chore(deps): bump @floating-ui/react from 0.24.8 to 0.26.28 (#5458) * chore(deps): bump @floating-ui/react from 0.24.8 to 0.26.28 Bumps [@floating-ui/react](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/react) from 0.24.8 to 0.26.28. - [Release notes](https://github.com/floating-ui/floating-ui/releases) - [Changelog](https://github.com/floating-ui/floating-ui/blob/master/packages/react/CHANGELOG.md) - [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/react@0.26.28/packages/react) --- updated-dependencies: - dependency-name: "@floating-ui/react" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * test: update snap * test: update --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jean-Michel FRANCOIS --- .changeset/sweet-shoes-carry.md | 6 ++++++ package.json | 2 +- .../ColumnChooser.component.test.js | 11 +++++----- .../ListDisplayMode.component.test.js | 2 +- .../__snapshots__/CellQualityBar.test.js.snap | 4 ++++ packages/design-system/package.json | 2 +- .../Badge/__snapshots__/Badge.test.tsx.snap | 2 ++ .../__snapshots__/Breadcrumbs.test.tsx.snap | 1 + .../__snapshots__/Dropdown.test.tsx.snap | 1 + yarn.lock | 20 +++++++++---------- 10 files changed, 33 insertions(+), 18 deletions(-) create mode 100644 .changeset/sweet-shoes-carry.md diff --git a/.changeset/sweet-shoes-carry.md b/.changeset/sweet-shoes-carry.md new file mode 100644 index 0000000000..cbcc744760 --- /dev/null +++ b/.changeset/sweet-shoes-carry.md @@ -0,0 +1,6 @@ +--- +'@talend/design-system': patch +'@talend/react-components': patch +--- + +fix: update floating-ui lib diff --git a/package.json b/package.json index 5c1a47fbbb..9d28999ff5 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "lint": "cross-env WORKSPACE_RUN_FAIL=no-bail talend-yarn-workspace run lint", "lint-merge-report": "talend-scripts lint-merge-report", "test": "cross-env TZ=UTC talend-yarn-workspace run test --silent", - "test:update": "cross-env TZ=UTC yarn workspaces run test --silent -u", + "test:update": "cross-env TZ=UTC talend-yarn-workspace run test --silent -u", "test:cov": "cross-env TZ=UTC talend-yarn-workspace run test:cov", "test:demo": "talend-yarn-workspace run test:demo", "test:cron": "talend-yarn-workspace run test:cron", diff --git a/packages/components/src/List/ListComposition/ColumnChooser/ColumnChooser.component.test.js b/packages/components/src/List/ListComposition/ColumnChooser/ColumnChooser.component.test.js index 3d315e084e..c5383be64f 100644 --- a/packages/components/src/List/ListComposition/ColumnChooser/ColumnChooser.component.test.js +++ b/packages/components/src/List/ListComposition/ColumnChooser/ColumnChooser.component.test.js @@ -21,18 +21,19 @@ describe('ColumnChooser', () => { }; }); - it('should render column chooser component', () => { + it('should render column chooser component', async () => { // when render( - + , ); // then - expect(screen.getByRole('button')).toBeVisible(); - act(() => screen.getByRole('button').focus()); // trigger the tooltip - expect(screen.getByText('Open the column chooser')).toBeVisible(); + const btn = screen.getByLabelText('Open the column chooser'); + expect(btn).toBeVisible(); + await userEvent.hover(btn); + expect(screen.getByRole('tooltip')).toHaveTextContent('Open the column chooser'); }); it('should update columns', async () => { diff --git a/packages/components/src/List/ListComposition/DisplayMode/ListDisplayMode.component.test.js b/packages/components/src/List/ListComposition/DisplayMode/ListDisplayMode.component.test.js index 6941ad79ed..ef2773f9f0 100644 --- a/packages/components/src/List/ListComposition/DisplayMode/ListDisplayMode.component.test.js +++ b/packages/components/src/List/ListComposition/DisplayMode/ListDisplayMode.component.test.js @@ -64,7 +64,7 @@ describe('List DisplayMode', () => { ); // then - act(() => screen.getAllByRole('button')[0].focus()); + await userEvent.hover(screen.getAllByRole('button')[0]); expect(screen.getByText('Set Table as current display mode.')).toBeVisible(); }); diff --git a/packages/components/src/VirtualizedList/CellQualityBar/__snapshots__/CellQualityBar.test.js.snap b/packages/components/src/VirtualizedList/CellQualityBar/__snapshots__/CellQualityBar.test.js.snap index 893f6f6e94..a99fc346a8 100644 --- a/packages/components/src/VirtualizedList/CellQualityBar/__snapshots__/CellQualityBar.test.js.snap +++ b/packages/components/src/VirtualizedList/CellQualityBar/__snapshots__/CellQualityBar.test.js.snap @@ -75,6 +75,7 @@ exports[`CellQualityBar should render a valid quality bar 1`] = ` >