@collaborators
Feature: Collaborator Invite

  Background:
    Given I have the current timestamp in seconds

  # 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 collaborators_test for collaborators
    And I log in
    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
    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 delete the new user from Auth0
