Feature: Digital Audio Product Builder Overview

  @wip
  @ows_assets
  @ows_product_digital
  @ows_product
  @graphql_product
  @ows_promo_player
  @frontend_distribution
  @id_c02b58ae858ad0667151fd5d925d0580296d451ea64bf5eb382167c5bbf14304
  Scenario: Complete promo player lifecycle with enabling, disabling, and expiration modes
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    # Digital Audio Product Builder Overview -> Promo Player is Not Available Without Valid Tracks or Artwork
    # This can be implemented as a frontend component test
    When I am on the digital product overview page for the project: 3697912, product: 2020312
    Then the Promo Player should not be available
    # Digital Audio Product Builder Overview -> Promo Player is Available with Valid Tracks and Artwork
    # This can be implemented as a frontend component test
    When I am on the digital product overview page for the project: 3848088, product: 2205277
    Then the Promo Player should be available
    # Digital Audio Product Builder Overview -> Enabling and Disabling the Promo Player
    And the product does not have an associated Promo Player
    Then the Promo Player Builder Page shows the Promo Player is enabled
    And the linked Promo Player matches the page settings
    And the linked Promo Player is enabled
    When I disable the product's Promo Player
    Then the stored Promo Player is disabled
    And the Promo Player Builder Page shows no url

  @wip
  @refactor_keep
  @ows_assets
  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @graphql_product
  @ows_promo_player
  @frontend_distribution
  @id_8d875f8783185c37afb7a79f54910bb1962de66ca2ead778e0c61748e49648d3
  Scenario Outline: Creating a Promo Player with specific Expiration Mode
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    When I am on the digital product overview page for the project: 3848088, product: 2205277
    And the product does not have an associated Promo Player
    And I set the product's release date in the future
    And I go to the digital product Overview step
    Then the Promo Player Builder Page shows the Promo Player is enabled
    When I go to the digital product Overview step
    And I select the <expiration_mode> Expiration Mode
    And I go to the digital product Overview step
    Then the Promo Player Builder Page shows the Promo Player is enabled
    And the linked Promo Player matches the page settings
    And the linked Promo Player leads to a valid page
    When I set the product's release date in the past
    And I go to the digital product Overview step
    Then the stored Promo Player leads to <released_behaviour> page

    Examples:
      | expiration_mode | released_behaviour |
      | on_release      | an invalid         |
      | never           | a valid            |


# Above is a consolidation of the following: file -> scenario
# cypress/e2e/workstation/productBuilder/digitalAudioProductBuilderOverview.feature -> Promo Player is Not Available Without Valid Tracks or Artwork
# cypress/e2e/workstation/productBuilder/digitalAudioProductBuilderOverview.feature -> Promo Player is Available with Valid Tracks and Artwork
# cypress/e2e/workstation/productBuilder/digitalAudioProductBuilderOverview.feature -> Enabling and Disabling the Promo Player
# Pause pipeline execution while collecting data for framework comparison and refactor analysis