Feature: ReactPhysical Reporting

  @ows_reporting
  @react_reporting
  Scenario: Product View Report Verification
    And I am on the ReactWorkstation::ReactPhysicalReportingPage
    When in new react reporting page I begin to generate a Product View report type
    And in new react reporting page I generate the report
    Then in new react reporting page I should see the results table with at least 1 result

  @ows_reporting
  @react_reporting
  Scenario: Product View Territory drop down
    And I am on the ReactWorkstation::ReactPhysicalReportingPage
    When in new react reporting page I begin to generate a Product View report type
    And in new react reporting page I select Canada in my territory dropdown
    Then in new react reporting page I should see the results table with at least 1 result

  @ows_reporting
  @react_reporting
  Scenario: Product View Product Status drop down (PHYS-3455)
    And I am on the ReactWorkstation::ReactPhysicalReportingPage
    When in new react reporting page I begin to generate a Product View report type
    And in new react reporting page I generate report with status Active Catalog
    Then in new react reporting page the first 12 results for the Product Status column equal Active Catalog

  @ows_reporting
  @react_reporting
  Scenario: Field selection (PHYS-3680)
    And I am on the ReactWorkstation::ReactPhysicalReportingPage
    When in new react reporting page I begin to generate a Product View report type
    And in new react reporting page I generate the report
    And in new react reporting page I click the metadata selection edit button
    And in new react reporting page I click the Artist column checkbox in the modal
    And in new react reporting page I click the column selection done button
    Then in new react reporting page I should not be able to see the Artist column
    When in new react reporting page I click the metadata selection edit button
    And in new react reporting page I click the Artist column checkbox in the modal
    And in new react reporting page I click the column selection done button
    Then in new react reporting page I should be able to see the Artist column
    When in new react reporting page I click the Metadata column checkbox
    Then in new react reporting page I should not be able to see the Artist column
    When in new react reporting page I click the metadata selection edit button
    And in new react reporting page I click the Metadata column checkbox in the modal
    And in new react reporting page I click the column selection done button
    Then in new react reporting page I should be able to see the Artist column

  @ows_reporting
  @react_reporting
  Scenario: Delete a report preset (PHYS-3836)
    Given in new react reporting page I have an existing report preset
    And I am on the ReactWorkstation::ReactPhysicalReportingPage
    When in new react reporting page I delete my report preset
    Then in new react reporting page I should not see my preset in the presets list


  @ows_reporting
  @react_reporting
  # (PHYS-3785, PHYS-3786)
  Scenario: Open single product overview and verify data
    And I am on the ReactWorkstation::ReactPhysicalReportingPage
    When in new react reporting page I begin to generate a Product View report type
    And in new react reporting page I select product types CD
    And in new react reporting page I generate report for product All-Time Top 100 TV Themes
    And in new react reporting page I click the single product overview link for the first result in the table
    Then in new react reporting page I should see an artist name of Teevee Toons Presents on the single product overview page
    And in new react reporting page I should see a product name of All-Time Top 100 TV Themes on the single product overview page
    And in new react reporting page I should see data in my single product overview tables

  @ows_reporting
  @react_reporting
  # (PHYS-3949, PHYS-3951, PHYS-3956)
  Scenario: Open a historical product report with a past start date
    And I am on the ReactWorkstation::ReactPhysicalReportingPage
    When in new react reporting page I begin to generate a Historical Product View report type
    And in new react reporting page I select a start month of January 2017
    And in new react reporting page I select an end month of January 2018
    And in new react reporting page I generate report for product Everything Is Illuminated
    Then in new react reporting page I should see the results table with at least 1 result

  @ows_reporting
  @react_reporting
  # PHYS-4384
  Scenario: Check for co-op data on Product View report
    And I am on the ReactWorkstation::ReactPhysicalReportingPage
    Then in new react reporting page I should not be able to see the co-op columns
    When in new react reporting page I choose to include co-op data
    Then in new react reporting page I should be able to see the co-op columns
