Feature:
  The product categories are only visible on their specific times

  @javascript
  Scenario: Product category visibility by day
    Given there is an open supplier with a menu
    And there is a table
    And I am signed in as a user
    When the user is on the order products page
    Then the user page contains the product category "Lunch"
    When the product category lunch is not visible today
    And I reload the page
    Then the user page contains the product category "Beer"
    And the user page does not contain the product category "Lunch"

  @javascript
  Scenario: Product category visibility by minute when inside the range
    Given there is an open supplier with a menu
    And there is a table
    And I am signed in as a user
    When the user is on the order products page
    Then the user page contains the product category "Lunch"
    When the product category lunch is visible at this time
    And I reload the page
    Then the user page contains the product category "Beer"
    And the user page contains the product category "Lunch"

  @javascript
  Scenario: Product category visibility by minute when category is visible after now
    Given there is an open supplier with a menu
    And there is a table
    And I am signed in as a user
    When the user is on the order products page
    Then the user page contains the product category "Lunch"
    When the product category lunch is visible later than now
    And I reload the page
    Then the user page contains the product category "Beer"
    And the user page does not contain the product category "Lunch"

  @javascript
  Scenario: Product category visibility by minute when category is visible before now
    Given there is an open supplier with a menu
    And there is a table
    And I am signed in as a user
    When the user is on the order products page
    Then the user page contains the product category "Lunch"
    When the product category lunch is visible earlyer than now
    And I reload the page
    Then the user page contains the product category "Beer"
    And the user page does not contain the product category "Lunch"
