@collaborators
@deprecated
Feature: Collaborator Report Generation

  Background:
    Given an orchard employee e2e for collaborators
    And I log in to collaborators silently
    And I select account Frenchkiss Records

  @collaborators_report_generation
  @id_04cbeb4b562bc9788e4c4f63e4402a9e4ee548ddd08632525a3650ef22517be4
  Scenario: Collaborator Reports Can be Generated and Deleted
    And The test collaborators have been created
    When I navigate to collaborators report page
    And I generate a collaborator report for cypress collaborators
    Then The test reports have successfully generated
    # Delete a collaborator report from reports page
    And I delete the first collaborator
    Then The collaborator cypress test collab 1 was successfully deleted
    # Bulk Delete collaborator reports from reports page
    And I delete the first 2 collaborators
    Then The collaborator cypress test collab 2 was successfully deleted
    Then The collaborator cypress test collab 3 was successfully deleted
    # Add Reports to Royalties from reports page
    When I add the cypress test collab 5 report with row button to royalties
    When I add the cypress test collab 4 report to royalties
    Then I go to the cypress test collab 4 collaborator royalties page
    And I can see the report was added to the royalties table
    Then I go to the cypress test collab 5 collaborator royalties page
    And I can see the report was added to the royalties table
    # Remove Reports to Royalties from reports page
    When I navigate to collaborators report page
    When I remove the cypress test collab 5 report with row button from royalties
    When I remove the cypress test collab 4 report from royalties

  @id_26c9f6945e3ba0760d45398a6e3f7448e6e5de2eea7bc1455913003075f95790
  Scenario: Royalties Page: Delete a report, Add Expense and Payment
    # Delete a report from the reports table page
    When I go to the cypress test collab 5 collaborator reports page
    And I can delete the first report from the reports page
    # Add an expense to a collaborator from the royalties page
    And I go to the cypress test collab 4 collaborator royalties page
    When I add an expense transaction to my collaborator
    Then My expense is visible in the royalties table
    # Add a payment to a collaborator from the royalties page
    And I add a payment transaction to my collaborator
    Then My payment is visible in the royalties table
