@frontend_catalog
@graphql_product
Feature: Catalog

  @id_040e4d2593c5c3a5007b20fdf6421b54865ced5da8c610ea26ba912cb0338fcd
  Scenario: Validate that catalog page works
    Given an orchard employee e2e_catalog_user visits workstation
    When I log in to Workstation
    When I navigate to catalog workstation page
    Then I see that the catalog page works

  @id_569627a908e65433948cd098d5352367b5bb6381587ffbbacc9214fa01914581
  Scenario: Search on Catalog Home Page
    Given an orchard employee react_homepage_flow_15063 for workstation
    And I login silently to workstation and visit the catalog page
    And I look for releases in catalog matching the term "dance"
    Then I should see "dance" in results

  @id_37bcb3d3c5d14aced9ce471ec7a2c5047c206f0dc97f1ac45ad8147c658c87aa
  Scenario Outline: Search by using filters
    Given an orchard employee react_homepage_flow_15063 for workstation
    And I login silently to workstation and visit the catalog page
    And I select releases with <filter_type>
    Then I should see the updated search results filtered by <filter_type>

    Examples:
      | filter_type  |
      | product type |
      | status       |
      | date         |

  @id_a9592016221d5c2b35a7fd1ccb00ad510105e4ae05b0a5bbc370dda4a453bfd9
  Scenario: Search by using filters - sub account filter
    Given an orchard employee label_18805 for workstation
    And I login silently to workstation and visit the catalog page
    And I select releases with subaccount
    Then I should see the updated search results filtered by subaccount
