@frontend_auth0
@workstation
@no-silent-login
@account_switch
Feature: Workstation account switch via header dropdown
  Users with access to multiple LabelProfiles can switch their active
  session via the header account switcher. Selecting a different label
  routes through the Auth0 `?account_switch=alw:<id>` post-login
  action, which re-issues the session with the chosen LabelProfile in
  the JWT identity claim. Regression coverage for OSP-1640, where the
  V2 path 403'd in prod and ~100 users were locked out of switching.

  The scenario does a full round-trip so the user lands back on the
  original LabelProfile. Auth0 stores the active LabelProfile in user
  metadata, so leaving the user switched would break sibling scenarios
  for the same fixture (e.g. promoPlayer.feature) on subsequent runs.

  @id_c820e5acef62b6cde8a0fe3f5cf7978aab17790d92c52acb294791f3cfcb1774
  Scenario: User switches LabelProfile via the account dropdown and back
    Given an orchard employee label_7482_25870_multi for workstation
    When I log in
    And my active LabelProfile matches my fixture
    And I switch to the other LabelProfile via the account dropdown
    Then I am logged in as a different LabelProfile
    When I switch to the other LabelProfile via the account dropdown
    Then I am logged in as a different LabelProfile
