Skip to content

Commit

Permalink
Adjust 2 cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chandlerprall committed Mar 24, 2021
1 parent bd66f47 commit 593a66b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('timeline flyout button', () => {

it('the `(+)` button popover menu owns focus', () => {
cy.get(TIMELINE_SETTINGS_ICON).filter(':visible').click({ force: true });
cy.get(CREATE_NEW_TIMELINE).should('have.focus');
cy.get(CREATE_NEW_TIMELINE).closest('.euiPanel').should('have.focus');
cy.get('body').type('{esc}');
cy.get(CREATE_NEW_TIMELINE).should('not.be.visible');
});
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/security_solution/cypress/tasks/timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export const closeTimeline = () => {

export const createNewTimeline = () => {
cy.get(TIMELINE_SETTINGS_ICON).filter(':visible').click({ force: true });
cy.wait(300);
cy.get(CREATE_NEW_TIMELINE).click();
};

Expand Down

0 comments on commit 593a66b

Please sign in to comment.