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

  Background: Chart Page is opened
    Given an orchard employee insightsemployee for insights
    When I log in to Insights silently
    Then I am successfully logged in to Insights

  @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 only data from My Catalog in the <type> list

    Examples:
      | chart_url                         | type  |
      | youtube_video_weekly_music_videos | Video |
      | spotify_track_weekly_regional     | Track |

  @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 "No Results" message on the page
