Skip to content

Commit

Permalink
Assignments Flaky tests (#173429)
Browse files Browse the repository at this point in the history
  • Loading branch information
e40pud committed Feb 12, 2024
1 parent 87de70f commit d8b194e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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(ROLES.t1_analyst);
loadPageAs(ROLES.t2_analyst);
loadPageAs(ROLES.t3_analyst);
loadPageAs(ROLES.soc_manager);
loadPageAs(ROLES.detections_admin);
loadPageAs(ROLES.platform_engineer);
});

after(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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(ROLES.t1_analyst);
loadPageAs(ROLES.t2_analyst);
loadPageAs(ROLES.t3_analyst);
loadPageAs(ROLES.soc_manager);
loadPageAs(ROLES.detections_admin);
loadPageAs(ROLES.platform_engineer);
});

after(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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(ROLES.t1_analyst);
loadPageAs(ROLES.t2_analyst);
loadPageAs(ROLES.t3_analyst);
loadPageAs(ROLES.soc_manager);
loadPageAs(ROLES.detections_admin);
loadPageAs(ROLES.platform_engineer);
});

after(() => {
Expand Down

0 comments on commit d8b194e

Please sign in to comment.