Skip to content

Commit

Permalink
add scrollToBottom to common tasks file
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc committed Mar 22, 2021
1 parent 5042792 commit c31c2ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ import { openTimelineUsingToggle } from '../../tasks/security_main';
import { addDataProvider, closeTimeline, createNewTimeline } from '../../tasks/timeline';

import { HOSTS_URL } from '../../urls/navigation';
import { cleanKibana } from '../../tasks/common';
import { cleanKibana, scrollToBottom } from '../../tasks/common';

describe('timeline data providers', () => {
before(() => {
cleanKibana();
loginAndWaitForPage(HOSTS_URL);
waitForAllHostsToBeLoaded();
cy.scrollTo('bottom');
scrollToBottom();
});

afterEach(() => {
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/security_solution/cypress/tasks/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,5 @@ export const cleanKibana = () => {

esArchiverResetKibana();
};

export const scrollToBottom = () => cy.scrollTo('bottom');

0 comments on commit c31c2ff

Please sign in to comment.