@content_review
Feature: Content Review Product

  Background: Clear browser
    Given I have a clear browser

  # 2022-10-04 Test to be converted to: I can not approve a product if it has some validation errors
  @wip
  @id_59f5a539af2f7b3cd27500429e7cae19fe09c73021dd3554590cfc7f2275f3e7
  Scenario: I can approve a product from transfer to content status to label processing
    Given a user from test_user for content
    And I log in to content silently
    And I have the upc of the first new product
    When I review and approve the product
    Then The product is in the complete status in the database
    And The product is no longer visible in the content review table

  @ows_product_digital_content
  @id_ab501fd5787f49c3404529ee49f7388bf72dee5e51ed59c66445b8223ab37c21
  Scenario: Create and approve a new release in content review
    Given an orchard employee label_16162 for workstation
    And I have a new project and digital product for the user with label 16162 and artist 842651
    And I upload artwork via api
    And I have a blank track with all required fields for label 16162
    And I upload a track via api
    When I validate and submit my product via api
    Then My product shouldn't be added to the legacy release approval queue
    And a user from test_user for content
    And I log in to content silently
    When I review and approve the product
    Then The product is in the complete status in the database
    And The product is no longer visible in the content review table

  @ows_product_digital_content
  @id_4f5bd5d28ca457e1381b5e2c90aecc988cf0a6d4e804d0d0e440cbe7a32d638e
  Scenario: Create and reject a new release in content review
    Given an orchard employee label_16162 for workstation
    And I have a new project and digital product for the user with label 16162 and artist 842651
    And I upload artwork via api
    And I have a blank track with all required fields for label 16162
    And I upload a track via api
    When I validate and submit my product via api
    And a user from test_user for content
    And I log in to content silently
    And The product is in the review queue
    When I review and reject the product
    And an orchard employee label_16162 for workstation
    And I log in to workstation silently
    And I am on the digital product overview page for the new product from content
    Then my product should be in Action Required status
    And The rejection reason is my rejection notes
