Feature: Conflict Manager

  # MR-3597
  @frontend_conflict_manager
  @ows_conflict_manager
  Scenario: Claim rights for all conflicting territories
    Given I am on the ConflictManager::NewConflictsPage
    When I initiate a response for the first track with territory conflicts
    And I claim to have exclusive rights for all of the territories
    Then I should see my response in the response history

  @frontend_conflict_manager
  @ows_conflict_manager
  Scenario: Claim rights for some conflicting territories
    Given I am on the ConflictManager::NewConflictsPage
    When I initiate a response for a track with multiple territory conflicts
    And I claim to have exclusive rights for some of the territories
    Then I should see my response in the response history

  @frontend_conflict_manager
  @ows_conflict_manager
  Scenario: Release claims for all conflicting territories
    Given I am on the ConflictManager::NewConflictsPage
    When I initiate a response for the first track with territory conflicts
    And I claim to have exclusive rights for none of the territories
    Then I should see my response in the response history

  # MR-3576
  # MR-3578
  # MR-3583
  # MR-3602
  # MR-3669
  # MR-3721
  # MR-3726
  @frontend_conflict_manager
  @ows_conflict_manager
  Scenario: Bulk respond
    Given I am on the ConflictManager::NewConflictsPage
    When I initiate a response for the first 2 tracks with territory conflicts
    And I claim to have exclusive rights for all of the territories
    Then I should see my response in the response history

  # MR-3930
  @ows_conflict_manager
  Scenario: Update external conflicts
    Given I am on the MastersRegistry::ExternalConflictsPage
    When I assert rights for a grouped conflict ID
    Then I see that rights were updated for the grouped conflict ID

  @ows_conflict_manager
  Scenario Outline: Filter conflicts by type
    Given I have data for an existing conflict
    When I search for an existing conflict by <search_type>
    Then I am able to see it in the search results

    Examples:
      | search_type              |
      | track                    |
      | isrc                     |
      | artist                   |
      | product                  |
      | upc                      |
      | conflicting_rightsholder |
