Skip to content

Commit

Permalink
adding one more verification for Data
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorGuz2000 committed Nov 4, 2020
1 parent 57f56c5 commit 91a640d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 91a640d

Please sign in to comment.