refactor(editor): Migrate mapper popover to ruka UI (#19564)

This commit is contained in:
Suguru Inoue
2025-09-17 10:42:40 +02:00
committed by GitHub
parent ae1af1101b
commit 0173d8f707
13 changed files with 212 additions and 566 deletions

View File

@@ -194,21 +194,10 @@ describe('SqlEditor.vue', () => {
await focusEditor(container);
await userEvent.click(getByTestId(EXPRESSION_OUTPUT_TEST_ID));
await waitFor(() =>
expect(
queryByTestId(EXPRESSION_OUTPUT_TEST_ID)?.closest('[aria-hidden=false]'),
).toBeInTheDocument(),
);
await waitFor(() => expect(queryByTestId(EXPRESSION_OUTPUT_TEST_ID)).toBeInTheDocument());
// Does hide output when clicking outside the container
await userEvent.click(baseElement);
// NOTE: in testing, popover persists regardless of persist option.
// See https://github.com/element-plus/element-plus/blob/2.4.3/packages/components/tooltip/src/content.vue#L83-L90
await waitFor(() =>
expect(
queryByTestId(EXPRESSION_OUTPUT_TEST_ID)?.closest('[aria-hidden=true]'),
).toBeInTheDocument(),
);
await waitFor(() => expect(queryByTestId(EXPRESSION_OUTPUT_TEST_ID)).not.toBeInTheDocument());
});
});