@frontend_physical_reporting
@ows_reporting
Feature: React Physical Reporting Filters

  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_92e672441cb100e8f7d4ade72374f949dedd08ad02b9d7ea1a31b39f89cefa23
  Scenario: Product View Report Filtered For Single Product
    When in new react reporting page I begin to generate a Product View report type
    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
    And in new react reporting page the first 12 results should contain Soundtrack
    And in new react reporting page the first 12 results should contain Everything Is Illuminated

  @id_17d05e2ec0047c096b93e58c0ebc559708ea238079fd60241f3a37bf5062fbc8
  Scenario: Product View Report Filtered For Single Product Type
    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 product type 12" Vinyl
    Then in new react reporting page I should see the results table with at least 1 result
    And in new react reporting page the first 12 results should contain 12" Vinyl

  @id_a88704b1e211b04fcb514f1df01796327d9a3201bac3501dc17703eaed4aa395
  Scenario: Product View Report Filtered For Single Artist
    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 artist Bounty Killer
    Then in new react reporting page I should see the results table with at least 1 result
    And in new react reporting page the first 12 results should contain Bounty Killer

  @id_1837acf36739bb17967687525680ed6df27da0c097740af7cb79507e9faef01b
  Scenario: Product View Report With Multiple Filters
    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 12" Vinyl, CD
    And in new react reporting page I select artists Bender, Acid Horse
    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
    And in new react reporting page the first 12 results should either contain Bender or Acid Horse
    And in new react reporting page the first 12 results should either contain 12" Vinyl or CD
    When in new react reporting page I remove filters 12" Vinyl
    And in new react reporting page I generate the report
    Then in new react reporting page the first 12 results should either contain Bender or Acid Horse
    And in new react reporting page the first 12 results should contain CD

  @id_9d1281ae22ebc113867fd517ff26ab7362b55385339939159e6300b042332d2b
  Scenario: Retailer View Report Filtered For Single Product
    When in new react reporting page I begin to generate a Retailer View report type
    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
    And in new react reporting page the first 12 results should contain Soundtrack
    And in new react reporting page the first 12 results should contain Everything Is Illuminated

  @id_a616b37c77032d5eb3088390a65549559f87dbb971de6210f19130d5ce5eecb1
  Scenario: Retailer View Report Filtered For Single Product Type
    When in new react reporting page I begin to generate a Retailer View report type
    And in new react reporting page I generate report with product type 7" Vinyl
    Then in new react reporting page I should see the results table with at least 1 result
    And in new react reporting page the first 12 results should contain 7" Vinyl

  @id_5b02e6030bdb6919972bbbc9fd35e4d4e66401f31c9bcc5359487edd30fd0940
  Scenario: Retailer View Report Filtered For Single Artist
    When in new react reporting page I begin to generate a Retailer View report type
    And in new react reporting page I generate report with artist Soundtrack
    Then in new react reporting page I should see the results table with at least 1 result
    And in new react reporting page the first 12 results should contain Soundtrack

  @id_a0d3981fac692444c4336bab8c3e0cf8ff31cfe3267309b2855aa259f8d0a389
  Scenario: Retailer View Report With Multiple Filters
    When in new react reporting page I begin to generate a Retailer View report type
    And in new react reporting page I select product types 12" Vinyl, CD
    And in new react reporting page I select artists Bender, Blue Epic
    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
    And in new react reporting page the first 12 results should either contain Bender or Blue Epic
    And in new react reporting page the first 12 results should either contain 12" Vinyl or CD
    When in new react reporting page I remove filters 12" Vinyl
    And in new react reporting page I generate the report
    Then in new react reporting page the first 12 results should either contain Bender or Blue Epic
    And in new react reporting page the first 12 results should contain CD

  @id_bedb52ea557884f7dceb92aaf5baacb7a43af7d82ed1b9ecf2a3c6cc2c6b8d6f
  Scenario: Use filters and field selection (PHYS-3744)
    When in new react reporting page I begin to generate a Product View report type
    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
    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
    And in new react reporting page I should not be able to see the Artist column
    And in new react reporting page my product name filter should be Everything Is Illuminated

  @id_871a70a0b7eed2374bf875bc204a04892e47d8b56955f34366fc27724da400d8
  Scenario: Save a report preset (PHYS-3843)
    And in new react reporting page I click the metadata selection edit button
    And in new react reporting page I click the Label Name column checkbox in the modal
    And in new react reporting page I click the column selection done button
    And in new react reporting page I select artists Acid Horse
    When in new react reporting page I create and save a preset
    Then in new react reporting page I should see my preset in the presets list

  @id_919a9e3d7a74a40f7c0cb242167e65136d20cb8d99efaf2b6c5a48e480b03ba6
  Scenario: Open a report preset (PHYS-3858)
    Given in new react reporting page I have an existing report preset
    When in new react reporting page I open my report preset
    Then in new react reporting page I should not be able to see the Label Name column
    And in new react reporting page the first 12 results should contain Acid Horse
    And in new react reporting page my artist filter should be Acid Horse
