diff --git a/.changeset/sweet-shoes-carry.md b/.changeset/sweet-shoes-carry.md new file mode 100644 index 00000000000..cbcc744760e --- /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 5f2f5ac9b51..216b540858b 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 3d315e084e3..c5383be64f6 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 6941ad79ed0..ef2773f9f08 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 893f6f6e947..a99fc346a80 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`] = ` >