@insights_regression
@insights_account
@IN-12548
@IN-13022
Feature: Account Overview POT By Sources Tab

  Background: [Regression][Account][Overview] By Sources tab
    Given an orchard employee insightsemployee for insights
    And I log in to Insights silently
    And I visit the insights account/26760/ page

  @id_1ff436ce636e227a6901fbe9e9c3a9265be47b880fc19b77a317ed9154d3c28b
  Scenario: [Regression][Account][Overview] By Sources tab - POT View
    Then I see current POT tab is By Sources on Account page
    Then I see current POT view is area on Account page
    When I switch to line POT view on Account page
    Then I can see POT graph is loaded
    When I switch to area POT view on Account page
    Then I can see POT graph is loaded

  @id_574f08b77a419adb74bfda72018619d6b265138c0dedd2a319c16aec2120c215
  Scenario: [Regression][Account][Overview] By Sources tab - POT Store filter
    Then I see current store filter is not selected on the page
    And I can verify Store filter on Account page
    When I select Apple Music store on Account page
    Then I can see POT graph is loaded
    When I clear store filter on Account page
    Then I can see POT graph is loaded
    When I select Spotify store on Account page
    And I can see POT graph is loaded
    And I switch POT tab to By Countries on Account page
    Then I see current store filter is Spotify on the page
    When I switch POT tab to By Sources on Song page
    Then I see current store filter is Spotify on the page
