@frontend_physical_reporting
@ows_reporting
Feature: React Physical Reporting

  Background: Physical Reporting page is opened
    Given an orchard employee label_15063_admin for workstation
    And I log in
    And I navigate to physical reporting workstation page

  @id_9c23a964f4caa88cc07c529dc8ac3a6799d86655cd2f9cb88e41a10bf2449f5f
  Scenario: Product View Report Verification
    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

  @id_6f06bef37b1c18c7e20ed5373a5a5da29a6c2f3e5a5a3fb26c5e474deeaf5432
  Scenario: Product View Territory drop down
    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

  @id_1753149ac76315c1449a25e0a5474211ae1becb91bc95e669b72fb48ba930f59
  Scenario: Product View Product Status drop down (PHYS-3455)
    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 should contain Active Catalog

  @id_f228ea230c5035832d89a35a3e053e04c34c7ef6c7fb4ed8dc2fcc12f91b534a
  Scenario: Field selection (PHYS-3680)
    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 in the reporting page
    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

  @id_02b076df8b52c8e0fe09ea6aa1f3f3d53dee973382cc78dc58f46f11c7ddc00e
  Scenario: Delete a report preset (PHYS-3836)
    Given in new react reporting page I have an existing report preset
    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

  @id_b76d8fd43e661b3d3a46c72189fd2151d40904b74420b42d6a60fe978ef2eb9f
  Scenario: Open a historical product report with a past start date (PHYS-3949, PHYS-3951, PHYS-3956)
    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

  @id_59113f68ba3f05be014afa3bd456fee9f72c70fcf26b29869cfe56076d80ebf1
  Scenario: Check for co-op data on Product View report (PHYS-4384)
    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

  @id_056facd8f8877ba34abee8d24e9071cd1b6d1adb950c53e8653fb1e2848aaedf
  Scenario: Open single product overview and verify data (PHYS-3785, PHYS-3786)
    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 the single product (All-Time Top 100 TV Themes) overview link should open a new tab
    When I navigate to single product overview page
    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
