@content_review
@graphql_product
Feature: Content Review Product

  # 2022-10-04 Test to be converted to: I can not approve a product if it has some validation errors
  @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
    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
  @ows_product_digital_content
  @id_ab501fd5787f49c3404529ee49f7388bf72dee5e51ed59c66445b8223ab37c21
  Scenario: Create and approve a new release in content review
    Given an orchard employee label_6971_admin for workstation
    And I have a new project and digital product for the user with label 6971 and artist 1684776
    And I upload artwork via api
    And I have a blank track with all required fields for label 6971
    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
    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
  @ows_product_digital_content
  @id_4f5bd5d28ca457e1381b5e2c90aecc988cf0a6d4e804d0d0e440cbe7a32d638e
  Scenario: Create and reject a new release in content review
    Given an orchard employee label_6971_admin for workstation
    And I have a new project and digital product for the user with label 6971 and artist 1684776
    And I upload artwork via api
    And I have a blank track with all required fields for label 6971
    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
    And The product is in the review queue
    When I review and reject the product
    And an orchard employee label_6971_admin for workstation
    And I log in
    When I am on the digital product overview page for the new product
    Then my product should be in Action Required status
    And The rejection reason is my rejection notes
