@slow @authentication @frontend_auth0
Feature: Workstation Login Migration Link Account Flow
  In order to make it easy to manage my multiple Workstation accounts
  As a user with multiple workstation accounts
  I need to be able to link an account to an already migrated auth0 account with the same email

  @auth0 @auth0_reset_single_user
  Scenario: check adding extra account to existing auth0 user using the same email
    Given I already have an Auth0 migrated user account migrated_auth0_15063
    And I am an Auth0 non-migrated auth0_25824 user
    And I am on the Workstation::LoginPage
    When I log in using the login page to Workstation as the auth0_25824 user
    And I enter the email address of the migrated_auth0_15063 user
    Then I see a message about Activating Single Sign On
    When I click the activation link from the email
    And I log in using new creds to Workstation as the auth0_25824 user using guardian MFA
    Then I can see linked auth0_25824 account in header
    When I log out of Workstation
    Then I should be logged out of Workstation
