@collaborators
@deprecated
Feature: Collaborator Invite

  Background:
    Given I alias the current timestamp in seconds

  # Must set base url to collaborators, Due to cross app test, cypress must be restarted between runs
  # If this test is failing with a token error refresh the google api token:
  # https://www.notion.so/How-to-Refresh-Our-Google-Api-Refresh-Token-09b9e96785fc457fb4740cddfcb7bfe0
  @id_5df674a9a106ac952c1609dff18fa92023bfbfaae86632e0500b0b35b6b331bf
  Scenario: Invite another user to view collaborator accounting information
    Given an orchard employee e2e for collaborators
    And I log in to collaborators silently without token reuse
    And I select account Frenchkiss Records
    And I go to the Mel Thomas collaborator royalties page
    When I invite a user to view the collaborator accounting information
    And I log out of collaborators
    Then The invited user can login to customer accounting via an email
    Then The correct user can see collaborator data for Mel Thomas in customer accounting
    And I log out of moneyhub
    And I delete the new user from Auth0
