Skip to content

Secure DB Role-Switch Automation Task #1351

Description

@brijesh-amin

Parent

#1349

What to build

Add automated role-switch infrastructure for tests so the shared staff user can switch between SA (3) and DM (2) by direct DB update keyed by exact users.sso_id, with logout/login required for role effect and automatic restore to SA after each test.

Acceptance criteria

  • Cypress task can set role by exact sso_id using DB credentials from environment variables.
  • Role-switch flow includes relogin checkpoints and verifies effective role before branch actions.
  • afterEach teardown always restores the shared staff account to SA (3), including failure cases.

Blocked by

Metadata

Metadata

Assignees

Labels

TaskWork that cannot be written as a User StoryUI TestA Cypress UI test that does something a person or people do.ready-for-agentTriaged and ready for an AI agent to pick up

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions