Skip to content

Commit

Permalink
Remove emphasize from lens menu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankeairns committed Sep 28, 2020
1 parent 60f6e01 commit 7264cb0
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions x-pack/plugins/lens/public/app_plugin/app.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,12 @@ describe('Lens App', () => {
let defaultSavedObjectId: string;

const navMenuItems = {
expectedSaveButton: { emphasize: true, testId: 'lnsApp_saveButton' },
expectedSaveAsButton: { emphasize: false, testId: 'lnsApp_saveButton' },
expectedSaveAndReturnButton: { emphasize: true, testId: 'lnsApp_saveAndReturnButton' },
expectedSaveButton: { testId: 'lnsApp_saveButton' },
expectedSaveAsButton: { testId: 'lnsApp_saveButton' },
expectedSaveAndReturnButton: {
iconType: 'checkInCircleFilled',
testId: 'lnsApp_saveAndReturnButton',
},
};

function makeAttributeService(): LensAttributeService {
Expand Down Expand Up @@ -614,9 +617,6 @@ describe('Lens App', () => {
expect(topNavMenuConfig).not.toContainEqual(
expect.objectContaining(navMenuItems.expectedSaveAndReturnButton)
);
expect(topNavMenuConfig).not.toContainEqual(
expect.objectContaining(navMenuItems.expectedSaveAsButton)
);
expect(topNavMenuConfig).toContainEqual(
expect.objectContaining(navMenuItems.expectedSaveButton)
);
Expand Down Expand Up @@ -649,9 +649,6 @@ describe('Lens App', () => {
expect(topNavMenuConfig).toContainEqual(
expect.objectContaining(navMenuItems.expectedSaveAsButton)
);
expect(topNavMenuConfig).not.toContainEqual(
expect.objectContaining(navMenuItems.expectedSaveButton)
);
});
});

Expand All @@ -672,9 +669,6 @@ describe('Lens App', () => {
expect(topNavMenuConfig).toContainEqual(
expect.objectContaining(navMenuItems.expectedSaveAsButton)
);
expect(topNavMenuConfig).not.toContainEqual(
expect.objectContaining(navMenuItems.expectedSaveButton)
);
});
});

Expand Down

0 comments on commit 7264cb0

Please sign in to comment.