@selenium @javascript
Feature: For easier debugging
  Providers need to see the status of their API
  So we provide them charts with response codes

  Background:
    Given a provider is logged in

  Scenario: Provider sees stats
    Given the provider has response codes stats data
     When on the response codes chart page
      And I select today from the stats menu
    Then there should be a c3 chart with the following data:
      | name          | total|
      | 2XX           | 10   |
      | 4XX           | 10   |
      | 5XX           | 10   |

  Scenario: Provider sees request logs when enabled
    Given the provider has cubert request logs feature enabled
     When on the response codes chart page
     Then there should be a request logs section

  Scenario: Provider doesn't see request logs when disabled
    Given the provider has cubert request logs feature disabled
    When on the response codes chart page
    Then there should not be a request logs section
