@legacy
@oa
Feature: Sales Sheets

  @id_d0ab364559fe3d52456e1c6d519b9ce4f63658c9e6a179e5963a5241a49a4ca2
  Scenario: Navigate to single sales sheet page for approved product
    Given an orchard employee cypress_manager_4 visits OA
    And I log in to OA
    And I navigate to view release for UPC 888002396747 oa page
    When I go to the sales sheets section
    Then I should be on the single sheet oa page

  @id_e8915cde4fd2e0027504257880deba175ed74fca290c176e148a92caebc5f159
  Scenario: Navigate to bulk sales sheets page
    Given an orchard employee cypress_manager_4 visits OA
    And I log in to OA
    And I have UPCs for multiple in-content physical products
    And generate_bulk_sales_sheets is enabled
    And I navigate to relationships oa page
    When I go to Bulk Sales Sheets Generation
    Then I should be on the sales sheet bulk generation oa page

  # wip'ed below scenario while waiting an update from security team
  @wip
  @smoke_dev
  @id_55b44a097f5e60d79ce76dacef494f01aa02498c651619dbc95ada978b397070
  Scenario: Generate single sales sheet for approved product (PHYS-3222)
    Given an orchard employee cypress_manager_4 visits OA
    And I log in to OA
    And I navigate to single sheets for release 1043505 oa page
    When I generate the sales sheet
    Then I can download the sales sheet
    And the extension of the downloaded file is .pdf

  @ows_sales_sheets
  @frontend_sales_sheets
  @id_9c61cfbc01e18c8e6d944e36083b3e5d1e90aeece20542b17eb4c747c56f6904
  Scenario: Bulk generate combined sales sheet (PHYS-3223)
    Given an orchard employee cypress_manager_2 visits OA
    And I log in to OA
    And I am on the sales-sheets bulk generate page
    And I have UPCs for multiple in-content physical products
    When I generate bulk sales sheets as a Combined PDF
    Then I see the new report in the saved reports table
    And I can download the bulk sales sheets file

  @ows_sales_sheets
  @frontend_sales_sheets
  @id_6de45869e2d6f704c9330e7ccf8f7ea63d22ca0348cb4bbe29005fdded38514c
  Scenario: Bulk generate separate sales sheets (PHYS-3224)
    Given an orchard employee cypress_manager_4 visits OA
    And I log in to OA
    And I am on the sales-sheets bulk generate page
    And I have UPCs for multiple in-content physical products
    When I generate bulk sales sheets as Multiple PDFs
    Then I see the new report in the saved reports table
    And I can download the bulk sales sheets file
