@insights_regression
@insights_account
@IN-13654
Feature: Account Overview POT By Entities Filters

  Background: [Regression][Account][Overview] Different dimension filters
    Given an orchard employee insightsemployee for insights
    And I log in
    And I visit the insights /account/26760/ page
    And I set POT Dimension filter to By Artist

  @id_bb94c2274408b14954ad3ac7cf8f9ee626f9d6cbe05fa4c8146b451932766628
  Scenario: [Regression][Account][Overview] POT Subscription filter
    Then I see POT Subscription filter is set to All Subscriptions
    And I see POT Subscription filter is disabled
    When I set POT Store filter to SoundCloud
    Then I can see the performance graph with data
    Then I can verify POT Subscription filter has available options: Mid-Tier,Subscription,Ad-Supported
    When I set POT Subscription filter to Mid-Tier
    Then I can see the performance graph with data
    When I set POT Subscription filter to Subscription
    Then I can see the performance graph with data
    When I set POT Subscription filter to Ad-Supported
    Then I can see the performance graph with data

  @id_74b546357eb716e5731f6af74c013871b0244db73a0531d6fa0bca8f25a9d851
  Scenario: [Regression][Account][Overview] POT Subscription filter depends on Store filter
    When I set POT Store filter to Spotify
    And I can see the performance graph with data
    Then I see POT Subscription filter is set to All Subscriptions
    And I can verify POT Subscription filter has available options: Subscription,Ad-Supported

    When I clear Store filter
    When I set POT Store filter to Apple Music
    And I see POT Subscription filter is set to All Subscriptions
    Then I can verify POT Subscription filter has available options: Subscription

    When I clear Store filter
    And I set POT Store filter to Amazon Music
    And I see POT Subscription filter is set to All Subscriptions
    Then I can verify POT Subscription filter has available options: Mid-Tier,Subscription,Ad-Supported

    When I clear Store filter
    And I set POT Store filter to AWA
    And I see POT Subscription filter is set to All Subscriptions
    Then I can verify POT Subscription filter has available options: Subscription

    When I clear Store filter
    And I set POT Store filter to Beatport
    Then I do not see POT Subscription filter

    When I clear Store filter
    And I set POT Store filter to Deezer
    And I see POT Subscription filter is set to All Subscriptions
    Then I can verify POT Subscription filter has available options: Subscription,Ad-Supported

    When I clear Store filter
    And I set POT Store filter to Google Play
    Then I do not see POT Subscription filter

    When I clear Store filter
    And I set POT Store filter to LINE Japan
    And I see POT Subscription filter is set to All Subscriptions
    Then I can verify POT Subscription filter has available options: Subscription

    When I clear Store filter
    When I set POT date to Past 6 Months period
    And I set POT Store filter to Napster
    And I see POT Subscription filter is set to All Subscriptions
    Then I can verify POT Subscription filter has available options: Subscription

    When I clear Store filter
    And I set POT Store filter to Pandora
    And I see POT Subscription filter is set to All Subscriptions
    Then I can verify POT Subscription filter has available options: Mid-Tier,Subscription

    # select another Metric
    When I clear Store filter
    And I set POT Metric filter to Saves
    Then I do not see POT Subscription filter
