Skip to content

Commit

Permalink
[Security Solution] Unskip flacky cellActions test (elastic#177577)
Browse files Browse the repository at this point in the history
## Summary

part of: elastic#161874
Fixes hover actions flaky cypress test. 

Flaky test runner execution after changes:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5293

---------

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Angela Chuang <[email protected]>
  • Loading branch information
3 people authored Mar 4, 2024
1 parent 0fd880b commit cd6bc5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { GLOBAL_SEARCH_BAR_FILTER_ITEM } from '../../../screens/search_bar';
import { DATA_PROVIDERS } from '../../../screens/timeline';

import { login } from '../../../tasks/login';
import { visit } from '../../../tasks/navigation';
import { visitWithTimeRange } from '../../../tasks/navigation';
import { networkUrl } from '../../../urls/navigation';
import {
clickOnAddToTimeline,
Expand All @@ -25,8 +25,7 @@ import { openTimelineUsingToggle } from '../../../tasks/security_main';

const testDomain = 'myTest';

// tracked by https://github.com/elastic/kibana/issues/161874
describe.skip('Hover actions', { tags: ['@ess', '@serverless'] }, () => {
describe('Hover actions', { tags: ['@ess', '@serverless'] }, () => {
const onBeforeLoadCallback = (win: Cypress.AUTWindow) => {
// avoid cypress being held by windows prompt and timeout
cy.stub(win, 'prompt').returns(true);
Expand All @@ -42,7 +41,9 @@ describe.skip('Hover actions', { tags: ['@ess', '@serverless'] }, () => {

beforeEach(() => {
login();
visit(networkUrl('flows'), { visitOptions: { onBeforeLoad: onBeforeLoadCallback } });
visitWithTimeRange(networkUrl('flows'), {
visitOptions: { onBeforeLoad: onBeforeLoadCallback },
});
openHoverActions();
mouseoverOnToOverflowItem();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const openHoverActions = () => {
};

export const mouseoverOnToOverflowItem = () => {
cy.get(OVERFLOW_ITEM).first().realHover();
cy.get(OVERFLOW_ITEM).first().trigger('mouseover');
};

export const clickOnFilterIn = () => {
Expand All @@ -47,6 +47,5 @@ export const clickOnShowTopN = () => {
};

export const clickOnCopyValue = () => {
cy.get(COPY).first().focus();
cy.focused().click();
cy.get(COPY).first().click();
};

0 comments on commit cd6bc5e

Please sign in to comment.