Skip to content

Commit 85a1eac

Browse files
committed
Fix tests
1 parent ca505c5 commit 85a1eac

7 files changed

Lines changed: 16 additions & 12 deletions

File tree

packages/kbn-securitysolution-exception-list-components/src/header_menu/__snapshots__/header_menu.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/kbn-securitysolution-exception-list-components/src/list_header/__snapshots__/list_header.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/kbn-securitysolution-exception-list-components/src/list_header/menu_items/__snapshots__/menu_items.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugins/canvas/shareable_runtime/components/footer/settings/__snapshots__/settings.test.tsx.snap

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugins/security_solution/public/timelines/components/field_renderers/field_renderers.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ describe('Field Renderers', () => {
427427
userEvent.click(screen.getByTestId('DefaultFieldRendererOverflow-button'));
428428

429429
expect(
430-
screen.getByText('You are in a dialog. To close this dialog, hit escape.')
430+
screen.getByText(
431+
'You are in a dialog. Press Escape, or tap/click outside the dialog to close.'
432+
)
431433
).toBeInTheDocument();
432434
expect(screen.getByTestId('more-container').textContent).toEqual('item6item7');
433435
});

x-pack/plugins/synthetics/public/apps/synthetics/components/common/monitor_test_result/journey_screenshot_preview.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ describe('JourneyScreenshotPreview', () => {
7676
);
7777

7878
const img = getByAltText('First step');
79-
const euiPopoverMessage = 'You are in a dialog. To close this dialog, hit escape.'; // Helps to detect if popover is open
79+
const euiPopoverMessage =
80+
'You are in a dialog. Press Escape, or tap/click outside the dialog to close.'; // Helps to detect if popover is open
8081
expect(queryByText(euiPopoverMessage)).toBeNull();
8182
fireEvent.mouseEnter(img);
8283
await waitFor(() => getByText(euiPopoverMessage));

x-pack/plugins/synthetics/public/apps/synthetics/components/common/screenshot/journey_step_screenshot_container.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ describe('JourneyStepScreenshotContainer', () => {
8383
);
8484

8585
const img = getByAltText('First step');
86-
const euiPopoverMessage = 'You are in a dialog. To close this dialog, hit escape.';
86+
const euiPopoverMessage =
87+
'You are in a dialog. Press Escape, or tap/click outside the dialog to close.';
8788
expect(queryByText(euiPopoverMessage)).toBeNull();
8889
fireEvent.mouseEnter(img);
8990
await waitFor(() => getByText(euiPopoverMessage));

0 commit comments

Comments
 (0)