Skip to content

Commit

Permalink
update test and snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <[email protected]>
  • Loading branch information
yuye-aws committed Sep 18, 2023
1 parent f509edc commit 86bf7b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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 @@ -39,9 +39,10 @@ describe('Header', () => {
onImport: () => {},
onRefresh: () => {},
onCopy: () => {},
onDuplicate: () => {},
title: 'Saved Objects',
selectedCount: 0,
totalCount: 4,
objectCount: 4,
filteredCount: 2,
showDuplicateAll: false,
hideImport: false,
Expand All @@ -60,17 +61,18 @@ describe('Header - workspace enabled', () => {
onImport: () => {},
onRefresh: () => {},
onCopy: () => {},
onDuplicate: () => {},
title: 'Saved Objects',
selectedCount: 0,
totalCount: 4,
objectCount: 4,
filteredCount: 2,
showDuplicateAll: true,
hideImport: false,
};

const component = shallow(<Header {...props} />);

expect(component.find('EuiButtonEmpty[data-test-subj="copyObjects"]').exists()).toBe(true);
expect(component.find('EuiButtonEmpty[data-test-subj="duplicateObjects"]').exists()).toBe(true);
});

it('should hide `Import` button for application home state', () => {
Expand All @@ -79,9 +81,10 @@ describe('Header - workspace enabled', () => {
onImport: () => {},
onRefresh: () => {},
onCopy: () => {},
onDuplicate: () => {},
title: 'Saved Objects',
selectedCount: 0,
totalCount: 4,
objectCount: 4,
filteredCount: 2,
showDuplicateAll: true,
hideImport: true,
Expand Down

0 comments on commit 86bf7b2

Please sign in to comment.