From 118e591cd581bb9a6fb7cec211908f4fbf48e213 Mon Sep 17 00:00:00 2001 From: Gloria Hornero Date: Mon, 21 Aug 2023 11:21:17 +0200 Subject: [PATCH 1/2] adjusments --- .../cypress/tasks/network/flows.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/x-pack/test/security_solution_cypress/cypress/tasks/network/flows.ts b/x-pack/test/security_solution_cypress/cypress/tasks/network/flows.ts index b9febb6a39381..ed9380a53a7bb 100644 --- a/x-pack/test/security_solution_cypress/cypress/tasks/network/flows.ts +++ b/x-pack/test/security_solution_cypress/cypress/tasks/network/flows.ts @@ -26,15 +26,18 @@ export const openHoverActions = () => { }; export const mouseoverOnToOverflowItem = () => { + cy.get(OVERFLOW_ITEM).should('be.visible'); cy.get(OVERFLOW_ITEM).first().realHover(); }; export const clickOnFilterIn = () => { - cy.get(FILTER_IN).first().click(); + cy.get(FILTER_IN).should('be.visible'); + cy.get(FILTER_IN).first().realClick(); }; export const clickOnFilterOut = () => { - cy.get(FILTER_OUT).first().click(); + cy.get(FILTER_IN).should('be.visible'); + cy.get(FILTER_OUT).first().realClick(); }; export const clickOnAddToTimeline = () => { From f3ddb7c25f12912942bc3b767a6d6256e8cf46b3 Mon Sep 17 00:00:00 2001 From: Gloria Hornero Date: Mon, 21 Aug 2023 11:21:32 +0200 Subject: [PATCH 2/2] preparing for flaky test runner --- x-pack/test/security_solution_cypress/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/security_solution_cypress/package.json b/x-pack/test/security_solution_cypress/package.json index 741205b8f7771..e1d4e38a114f6 100644 --- a/x-pack/test/security_solution_cypress/package.json +++ b/x-pack/test/security_solution_cypress/package.json @@ -12,7 +12,7 @@ "cypress:ess": "TZ=UTC node ../../plugins/security_solution/scripts/start_cypress_parallel run --config-file ../../test/security_solution_cypress/cypress/cypress_ci.config.ts --ftr-config-file ../../test/security_solution_cypress/cli_config --reporter ../../../node_modules/cypress-multi-reporters --reporter-options configFile=./cypress/reporter_config.json", "cypress:run:respops:ess": "yarn cypress:ess --config-file ../../test/security_solution_cypress/cypress/cypress_ci.config.ts --browser chrome --spec './cypress/e2e/(detection_alerts|detection_rules|exceptions)/*.cy.ts' --ftr-config-file ../../test/security_solution_cypress/cli_config; status=$?; yarn junit:merge && exit $status", "cypress:investigations:run:ess": "yarn cypress:ess --config-file ../../test/security_solution_cypress/cypress/cypress_ci.config.ts --browser chrome --spec './cypress/e2e/investigations/**/*.cy.ts' --ftr-config-file ../../test/security_solution_cypress/cli_config; status=$?; yarn junit:merge && exit $status", - "cypress:explore:run:ess": "yarn cypress:ess --config-file ../../test/security_solution_cypress/cypress/cypress_ci.config.ts --browser chrome --spec './cypress/e2e/explore/**/*.cy.ts' --ftr-config-file ../../test/security_solution_cypress/cli_config; status=$?; yarn junit:merge && exit $status", + "cypress:explore:run:ess": "yarn cypress:ess --config-file ../../test/security_solution_cypress/cypress/cypress_ci.config.ts --browser chrome --spec './cypress/e2e/explore/network/hover_actions.cy.ts' --ftr-config-file ../../test/security_solution_cypress/cli_config; status=$?; yarn junit:merge && exit $status", "cypress:changed-specs-only:ess": "yarn cypress:ess --changed-specs-only --env burn=2", "junit:merge": "../../../node_modules/.bin/mochawesome-merge ../../../target/kibana-security-solution/cypress/results/mochawesome*.json > ../../../target/kibana-security-solution/cypress/results/output.json && ../../../node_modules/.bin/marge ../../../target/kibana-security-solution/cypress/results/output.json --reportDir ../../../target/kibana-security-solution/cypress/results && yarn junit:transform && mkdir -p ../../../target/junit && cp ../../../target/kibana-security-solution/cypress/results/*.xml ../../../target/junit/", "junit:transform": "node ../../plugins/security_solution/scripts/junit_transformer --pathPattern '../../../target/kibana-security-solution/cypress/results/*.xml' --rootDirectory ../../../ --reportName 'Security Solution Cypress' --writeInPlace",