Feature: Video Rejection and Approval

  @ows_video
  @frontend_video
  @id_0c8ddb848ce0a88a7ce4d96218587b6334bcd5441ecc8054cbb012423ae6c659
  Scenario: Contributor validation / Genre for non-music video types
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I have existing api Video Product data for all fields
    And I have a new project for a physical product
    When I add a product to the project
    And I select video as the product type
    And I submit my product
    When I try to save a contributor without selecting a role
    Then I see a warning saying both contributor fields must be present
    When I try to save a contributor role without selecting a contributor
    Then I see a warning saying both contributor fields must be present
    When I set the video type to Behind the Scenes
    Then the genre select list should be automatically set to Video
    And the subgenre select list can be set to Documentary

  @ows_video
  @frontend_video
  @id_c5a5dae342f9e44a01acbd88bdfe7c813cb5bd48dbabdb02b73ffcb23e638982
  Scenario: Reject a music video product
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I have existing Physical Product data for label 7123 for all fields
    And I have a new project for a physical product
    Then I add a product to the project
    And I select video as the product type
    And I submit my product
    And I have valid video product data
    When I upload a valid music video
    Then the video starts the validation process
    When the video finishes validating
    When I fill out the video metadata fields and refresh
    Then the video metadata is still present after the refresh
    Then the video preview should appear
    When I submit the video product
    Then the video product is queued up for approval
    And I log out of workstation
    Given an orchard employee cypress_manager_3 visits oa
    And I log in
    And I navigate to oa video page
    When I reject the video
    Then I check that video is rejected

  @ows_video
  @frontend_video
  @id_5afceaef9215b8f4523cfd68d757eb3dc5f48ba340d97b6775d74e5157e0a7e6
  Scenario: Create and deliver a music video product
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I have existing api Video Product data for all fields
    And I have a new project for a physical product
    When I add a product to the project
    And I select video as the product type
    And I submit my product
    And I have valid video product data
    When I upload a valid music video
    Then the video starts the validation process
    When the video finishes validating
    When I fill out the video metadata fields and refresh
    Then the video metadata is still present after the refresh
    Then the video preview should appear
    When I submit the video product
    Then the video product is queued up for approval
    And I log out of workstation
    Given an orchard employee cypress_manager_3 visits oa
    And I log in
    And I navigate to oa video page
    When I approve the video
    Then I check that video is approved
