From 91a640d4c49efb216592677bb77cd06d47d2408f Mon Sep 17 00:00:00 2001 From: igorguz Date: Wed, 4 Nov 2020 13:59:44 -0800 Subject: [PATCH] adding one more verification for Data --- .../security_solution_endpoint/apps/endpoint/resolver.ts | 9 ++++++++- .../page_objects/hosts_page.ts | 3 --- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/x-pack/test/security_solution_endpoint/apps/endpoint/resolver.ts b/x-pack/test/security_solution_endpoint/apps/endpoint/resolver.ts index 2053ea206881d..d49f5bf17aab1 100644 --- a/x-pack/test/security_solution_endpoint/apps/endpoint/resolver.ts +++ b/x-pack/test/security_solution_endpoint/apps/endpoint/resolver.ts @@ -285,7 +285,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await esArchiver.load('endpoint/resolver_tree/alert_events', { useCreate: true }); await queryBar.setQuery(''); await queryBar.submitQuery(); - const expectedAlertData = ['1 library', '157 file', '520 registry', '3 file', '5 library']; + const expectedAlertData = [ + '1 library', + '157 file', + '520 registry', + '3 file', + '5 library', + '5 library', + ]; await pageObjects.hosts.navigateToEventsPanel(); await pageObjects.hosts.executeQueryAndOpenResolver('event.dataset : endpoint.alerts'); await (await testSubjects.find('resolver:graph-controls:zoom-out')).click(); diff --git a/x-pack/test/security_solution_endpoint/page_objects/hosts_page.ts b/x-pack/test/security_solution_endpoint/page_objects/hosts_page.ts index 0b7cd6edd456b..c76a5a7c22f60 100644 --- a/x-pack/test/security_solution_endpoint/page_objects/hosts_page.ts +++ b/x-pack/test/security_solution_endpoint/page_objects/hosts_page.ts @@ -126,9 +126,6 @@ export function SecurityHostsPageProvider({ getService, getPageObjects }: FtrPro const EventName = await Events[i]._webElement.getText(); const LinkText = await testSubjects.find('resolver:breadcrumbs:last'); const linkText = await LinkText._webElement.getText(); - console.log(i); - console.log(EventName); - console.log(expectedData[i]); expect(EventName).to.equal(linkText); expect(EventName).to.equal(expectedData[i]); }