Skip to content

Commit

Permalink
wrap element with cypress pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc committed Mar 3, 2021
1 parent 4f4ca4a commit 7a34fb0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ describe('timeline data providers', () => {
});

it.only('displays the data provider action menu when Enter is pressed', () => {
openTimelineUsingToggle();
dragAndDropFirstHostToTimeline();
openTimelineUsingToggle();
cy.get(TIMELINE_DATA_PROVIDERS_ACTION_MENU).should('not.exist');

cy.get(`${TIMELINE_FLYOUT_HEADER} ${TIMELINE_DROPPED_DATA_PROVIDERS}`).should('exist');
cy.get(`${TIMELINE_FLYOUT_HEADER} ${TIMELINE_DROPPED_DATA_PROVIDERS}`).first().focus();
cy.get(`${TIMELINE_FLYOUT_HEADER} ${TIMELINE_DROPPED_DATA_PROVIDERS}`)
.pipe(($el) => $el.trigger('focus'))
.should('exist');
cy.get(`${TIMELINE_FLYOUT_HEADER} ${TIMELINE_DROPPED_DATA_PROVIDERS}`)
.first()
.parent()
Expand Down

0 comments on commit 7a34fb0

Please sign in to comment.