@no-silent-login
@impersonation
Feature: Workstation Impersonation

  #    feature files that need impersonation
  #    All scenarios that the user is NOT label_7123 need to be re-written to use impersonation
  #    DON'T FORGET TO stop impersonating at the end of the scenario (workstation keeps the session open even if you restart the browser)
  #    Scenario digitalProductBuilder subaccount_1
  #    Scenario Create and submit physical product as D3 - d3_16055
  #    Scenario: Create new project as D3 - d3_16055
  #    Scenario: Withhold Royalties is present and publishers is required for mech admins - label_16155
  #    Scenario: Withhold Royalties is present and publishers is required for mech admins on a physical product - label_16155
  @id_1bdde7312d623b1fbf9d7ffefca3560aa7a113232fe089b77d12d265c274e91d
  Scenario: Workstation user impersonation
    Given an orchard employee label_7123 visits workstation
    When I log in
    Then I see that the workstation header works
    And I see that the workstation footer works
    And I see that the workstation home page works
    When I impersonate an subaccount_1 user
    Then I see that I am logged in as the impersonated user
    When I stop impersonating
    Then I see that I am logged back in as label_7123_admin
