diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments.cy.ts index 21a67b7fb4ea4..92660e5c8e433 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments.cy.ts @@ -17,7 +17,6 @@ import { } from '../../../../../tasks/alerts'; import { createRule } from '../../../../../tasks/api_calls/rules'; import { deleteAlertsAndRules } from '../../../../../tasks/api_calls/common'; -import { login } from '../../../../../tasks/login'; import { ALERTS_URL } from '../../../../../urls/navigation'; import { waitForAlertsToPopulate } from '../../../../../tasks/create_new_rule'; import { @@ -47,12 +46,12 @@ describe('Alert user assignment - ESS & Serverless', { tags: ['@ess', '@serverle cy.task('esArchiverLoad', { archiveName: 'auditbeat_multiple' }); // Login into accounts so that they got activated and visible in user profiles list - login(ROLES.t1_analyst); - login(ROLES.t2_analyst); - login(ROLES.t3_analyst); - login(ROLES.soc_manager); - login(ROLES.detections_admin); - login(ROLES.platform_engineer); + loadPageAs(ALERTS_URL, ROLES.t1_analyst); + loadPageAs(ALERTS_URL, ROLES.t2_analyst); + loadPageAs(ALERTS_URL, ROLES.t3_analyst); + loadPageAs(ALERTS_URL, ROLES.soc_manager); + loadPageAs(ALERTS_URL, ROLES.detections_admin); + loadPageAs(ALERTS_URL, ROLES.platform_engineer); }); after(() => { diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments_serverless_complete.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments_serverless_complete.cy.ts index f026e4b2262e4..5d5f758fe358c 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments_serverless_complete.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments_serverless_complete.cy.ts @@ -10,7 +10,6 @@ import { getNewRule } from '../../../../../objects/rule'; import { refreshAlertPageFilter, selectFirstPageAlerts } from '../../../../../tasks/alerts'; import { createRule } from '../../../../../tasks/api_calls/rules'; import { deleteAlertsAndRules } from '../../../../../tasks/api_calls/common'; -import { login } from '../../../../../tasks/login'; import { ALERTS_URL } from '../../../../../urls/navigation'; import { waitForAlertsToPopulate } from '../../../../../tasks/create_new_rule'; import { @@ -38,12 +37,12 @@ describe( cy.task('esArchiverLoad', { archiveName: 'auditbeat_multiple' }); // Login into accounts so that they got activated and visible in user profiles list - login(ROLES.t1_analyst); - login(ROLES.t2_analyst); - login(ROLES.t3_analyst); - login(ROLES.soc_manager); - login(ROLES.detections_admin); - login(ROLES.platform_engineer); + loadPageAs(ALERTS_URL, ROLES.t1_analyst); + loadPageAs(ALERTS_URL, ROLES.t2_analyst); + loadPageAs(ALERTS_URL, ROLES.t3_analyst); + loadPageAs(ALERTS_URL, ROLES.soc_manager); + loadPageAs(ALERTS_URL, ROLES.detections_admin); + loadPageAs(ALERTS_URL, ROLES.platform_engineer); }); after(() => { diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments_serverless_essentials.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments_serverless_essentials.cy.ts index f8bbf2620a542..54aae5d2eb8dc 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments_serverless_essentials.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments_serverless_essentials.cy.ts @@ -10,7 +10,6 @@ import { getNewRule } from '../../../../../objects/rule'; import { refreshAlertPageFilter, selectFirstPageAlerts } from '../../../../../tasks/alerts'; import { createRule } from '../../../../../tasks/api_calls/rules'; import { deleteAlertsAndRules } from '../../../../../tasks/api_calls/common'; -import { login } from '../../../../../tasks/login'; import { ALERTS_URL } from '../../../../../urls/navigation'; import { waitForAlertsToPopulate } from '../../../../../tasks/create_new_rule'; import { @@ -38,12 +37,12 @@ describe( cy.task('esArchiverLoad', { archiveName: 'auditbeat_multiple' }); // Login into accounts so that they got activated and visible in user profiles list - login(ROLES.t1_analyst); - login(ROLES.t2_analyst); - login(ROLES.t3_analyst); - login(ROLES.soc_manager); - login(ROLES.detections_admin); - login(ROLES.platform_engineer); + loadPageAs(ALERTS_URL, ROLES.t1_analyst); + loadPageAs(ALERTS_URL, ROLES.t2_analyst); + loadPageAs(ALERTS_URL, ROLES.t3_analyst); + loadPageAs(ALERTS_URL, ROLES.soc_manager); + loadPageAs(ALERTS_URL, ROLES.detections_admin); + loadPageAs(ALERTS_URL, ROLES.platform_engineer); }); after(() => {