Skip to content

Commit

Permalink
Updated unit tests and snapshots in Jest Test Suite #10.
Browse files Browse the repository at this point in the history
Updated snaphshots to account for EuiBadge, EuiDescriptionList, EuiFlyout, and EuiCard Emotion conversions. Updated snapshots for EuiTooltip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles.
Updated tests that target EuiButton to simulate click events to target a generic button element to prevent undefined click event errors
  • Loading branch information
breehall committed Sep 28, 2022
1 parent ac469da commit e084371
Show file tree
Hide file tree
Showing 15 changed files with 228 additions and 236 deletions.

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 @@ -66,7 +66,7 @@ describe('SavedObjectFinderCreateNew', () => {
const component = mountWithIntl(<SavedObjectFinderCreateNew menuItems={items} />);
let popover = component.find(EuiPopover);
expect(popover.prop('isOpen')).toBe(false);
const button = component.find(EuiButton);
const button = component.find('button');
button.simulate('click');
popover = component.find(EuiPopover);
expect(popover.prop('isOpen')).toBe(true);
Expand Down
Loading

0 comments on commit e084371

Please sign in to comment.