Skip to content

Commit

Permalink
EuiButton - Update EuiButton related snapshots. Updated tests that ta…
Browse files Browse the repository at this point in the history
…rget EuiButton directly to use a data-telementary-id for more specific element querying required by Emotion
  • Loading branch information
breehall committed Nov 4, 2022
1 parent 2b50182 commit 313297a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 34 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.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
EuiPopover,
EuiContextMenuItem,
EuiContextMenuPanel,
EuiButton,
EuiResizeObserver,
} from '@elastic/eui';

Expand Down Expand Up @@ -59,7 +58,9 @@ describe('SyncsContextMenu', () => {
it('Can cancel syncs', () => {
setMockValues({ ...mockValues, isSyncing: true });
const wrapper = mountWithIntl(<SyncsContextMenu />);
const button = wrapper.find(EuiButton);
const button = wrapper.find(
'button[data-telemetry-id="entSearchContent-connector-header-sync-openSyncMenu"]'
);
button.simulate('click');

const menuItems = wrapper
Expand All @@ -83,7 +84,9 @@ describe('SyncsContextMenu', () => {
it('Can start a sync', () => {
setMockValues({ ...mockValues, ingestionStatus: IngestionStatus.ERROR });
const wrapper = mountWithIntl(<SyncsContextMenu />);
const button = wrapper.find(EuiButton);
const button = wrapper.find(
'button[data-telemetry-id="entSearchContent-connector-header-sync-openSyncMenu"]'
);
button.simulate('click');

const menuItems = wrapper
Expand Down

0 comments on commit 313297a

Please sign in to comment.