Skip to content

Commit

Permalink
[SIEM][Timeline] Updates all events text timeline (#71701)
Browse files Browse the repository at this point in the history
* updates 'All events' timeline text to 'All'

* updates jest test

* fixes test issue
  • Loading branch information
MadameSheema authored Jul 14, 2020
1 parent 9e2ebe2 commit b48162b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const FILTER_OR_SEARCH_WITH_KQL = i18n.translate(
export const ALL_EVENT = i18n.translate(
'xpack.securitySolution.timeline.searchOrFilter.eventTypeAllEvent',
{
defaultMessage: 'All events',
defaultMessage: 'All',
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe('Timeline', () => {
expect(wrapper.find('[data-test-subj="table-pagination"]').exists()).toEqual(false);
});

test('it defaults to showing `All events`', () => {
test('it defaults to showing `All`', () => {
const wrapper = mount(
<TestProviders>
<MockedProvider mocks={mocks}>
Expand All @@ -176,9 +176,7 @@ describe('Timeline', () => {
</TestProviders>
);

expect(wrapper.find('[data-test-subj="pick-event-type"] button').text()).toEqual(
'All events'
);
expect(wrapper.find('[data-test-subj="pick-event-type"] button').text()).toEqual('All');
});

it('it shows the timeline footer', () => {
Expand Down

0 comments on commit b48162b

Please sign in to comment.