Skip to content

[Scout] Add loginAsEndpointPolicyManager browserAuth helper - #290726

Draft
MadameSheema wants to merge 1 commit into
elastic:mainfrom
MadameSheema:login-as-endpoint-policy-manager
Draft

[Scout] Add loginAsEndpointPolicyManager browserAuth helper#290726
MadameSheema wants to merge 1 commit into
elastic:mainfrom
MadameSheema:login-as-endpoint-policy-manager

Conversation

@MadameSheema

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the review request on #289903 (comment).

  • Adds browserAuth.loginAsEndpointPolicyManager() next to loginAsT1Analyst() / loginAsPlatformEngineer().
  • Switches every loginAsSecurityRole('endpoint_policy_manager') caller on main (three logins in describeArtifactTabPolicyDetails).

loginAsSecurityRole() remains for roles that do not have a named helper yet (rule_author, soc_manager).

Relates to #289903.

Note

#289903 is still open and adds artifact_list_suite.ts with the old string login. That file is not on main yet. After this lands, that factory should switch to loginAsEndpointPolicyManager() — the generic method still works until then.

Test plan

  • node scripts/type_check --project x-pack/solutions/security/packages/kbn-scout-security/tsconfig.json
  • ESLint on the two changed files
  • Repo search: no remaining loginAsSecurityRole('endpoint_policy_manager') on this branch
  • After merge, update [EDR] Migrate blocklist list-page RBAC from Cypress to Scout #289903 artifact_list_suite.ts if that PR is still open

Made with Cursor

Named convenience method matches loginAsT1Analyst so EDR artifact tests
do not pass a string role name to loginAsSecurityRole.

Co-authored-by: Cursor <cursoragent@cursor.com>
@infra-vault-gh-plugin-prod

infra-vault-gh-plugin-prod Bot commented Sep 13, 2026

Copy link
Copy Markdown
🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!
  • Click to trigger kibana-deploy-project-from-pr for this PR!
  • Click to trigger kibana-deploy-cloud-from-pr for this PR!
  • Click to trigger kibana-entity-store-performance-from-pr for this PR!
  • Click to trigger kibana-storybooks-from-pr for this PR!

@kibanamachine

Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

Test Failures

  • [job] [logs] FTR Configs #68 / Connectors with AWS SES Kibana config Email - with AWS SES Kibana config should use the kibana config for aws ses
  • [job] [logs] FTR Configs #131 / lens app - group 1 lens chart style settings should allow filtering by legend on a pie chart
  • [job] [logs] FTR Configs #40 / lens app - group 1 lens dimension editor should correctly optimize multiple percentile metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants