Feature: Sales Sheets

  # download is triggered by onclick event. need to figure out native browser download
  @ows_sales_sheets
  @frontend_sales_sheets
  Scenario: Bulk generate combined sales sheet (PHYS-3223)
    Given I am on the SalesSheets::BulkGeneratePage
    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
    # And the extension of the downloaded file is .pdf

  # download is triggered by onclick event. need to figure out native browser download
  @ows_sales_sheets
  @frontend_sales_sheets
  Scenario: Bulk generate separate sales sheets (PHYS-3224)
    Given I am on the SalesSheets::BulkGeneratePage
    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
    # And the extension of the downloaded file is .zip

  @ows_sales_sheets
  @frontend_distribution
  Scenario: Download sales sheet for physical product
    Given a standalone Workstation label_7123 user
    And I have existing Physical Product data for label 7123 for all fields
    And I have a new project and physical product for label 7123
    And I am on the Project::PhysicalProductDetailsPage for the product
    When I download the sales sheet for my product
    Then I should see my download progress and finish
