Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz committed Feb 6, 2023
1 parent ca505c5 commit 85a1eac
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,9 @@ describe('Field Renderers', () => {
userEvent.click(screen.getByTestId('DefaultFieldRendererOverflow-button'));

expect(
screen.getByText('You are in a dialog. To close this dialog, hit escape.')
screen.getByText(
'You are in a dialog. Press Escape, or tap/click outside the dialog to close.'
)
).toBeInTheDocument();
expect(screen.getByTestId('more-container').textContent).toEqual('item6item7');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ describe('JourneyScreenshotPreview', () => {
);

const img = getByAltText('First step');
const euiPopoverMessage = 'You are in a dialog. To close this dialog, hit escape.'; // Helps to detect if popover is open
const euiPopoverMessage =
'You are in a dialog. Press Escape, or tap/click outside the dialog to close.'; // Helps to detect if popover is open
expect(queryByText(euiPopoverMessage)).toBeNull();
fireEvent.mouseEnter(img);
await waitFor(() => getByText(euiPopoverMessage));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ describe('JourneyStepScreenshotContainer', () => {
);

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

0 comments on commit 85a1eac

Please sign in to comment.