@bulk_uploader
@graphql_distribution
@frontend_homepage
Feature: Bulk Uploader - upload validations

  @rb
  @id_94b634dfd4750d2afda0ffb300779677a9f90d41924f847bf91d4dbfc15bb007
  Scenario: Validation failure for invalid data file
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I click bulk Create Digital Products in workstation
    When I upload an invalid spreadsheet with invalid data to bulk uploader
    Then I should see error messages for invalid data in the spreadsheet

  @rb
  @id_ff290d48e3843fad51c59c7de921705e13ee35bc569514e4766726cb99dd9520
  Scenario: Validation failure for old template file
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I click bulk Create Digital Products in workstation
    When I upload an old template data to bulk uploader
    Then I should see error messages for old template

  @rb
  @id_e95a339ba57a58ba9c2a409a2f2f98b663358d5c853bddd6542684c027d2423f
  Scenario: Old template report contains updated columns
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I click bulk Create Digital Products in workstation
    When I upload an old template data to bulk uploader
    Then I should see error messages for old template
    When I download the old template report
    Then the report should contain the column "Withhold publishing royalty from US physical Revenues**" in the Tracks sheet

  @legacy
  @rb
  @legacy_workstation
  @id_6c7a27e84d83fe8f2043c461f15631b56376cf764e08cd86e208e5c215c88cd8
  Scenario: Incorrect spreadsheet file format
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I click bulk Create Digital Products in workstation
    When I upload an incorrect file format to bulk uploader
    Then I should see an error message for invalid file format

  @id_b386526f1dc27a10f46fb1a3ea664b67ee7783fadf2a027910fbfe302922cebc
  Scenario: Upload a Release
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I click bulk Create Digital Products in workstation
    When I upload a valid spreadsheet to bulk uploader
    Then I should see a success message for valid bulk upload
