@insights_regression
@insights_charts
@insights_charts_my_catalog
@donotfail
Feature: Chart Only My Catalog

  Background: Chart Page is opened
    Given an orchard employee insightsemployee for insights
    And I log in

  @IN-12568
  @id_7610631e70e3e69b4ba56947adf173123b0b5ded6d8500c297c23427a06d3ba4
  Scenario Outline: [Regression][Chart] - 'Only My Catalog' mocked - <chart_url>
    When I visit the insights /chart/<chart_url> page
    Then I see a chart table is loaded
    When I set Only My Catalog flag
    Then I see a chart table is loaded

    Examples:
      | chart_url                         |
      | youtube_video_weekly_music_videos |
      | spotify_track_weekly_regional     |

  @IN-12568_empty
  @id_4bebff7561884b02e41ae2ed294a0c2d769a16606969594a1706341b5ec7e2a5
  Scenario: [Regression][Chart] - 'Only My Catalog' empty
    When I visit the insights /chart/spotify_track_weekly_regional page
    Then I see a chart table is loaded
    When I set Only My Catalog flag
    Then I see catalog-only empty state on the Chart page
