@fansifter
@artist-page
Feature: Artist page - Fan segments chart

  Background: Log in (user has access to a few labels)
    Given an orchard employee fansifter-set-2-2-aquarius for fansifter
    And I log in
    And I visit Fansifter Search page

  @FS-1678
  @id_f50130659356d1b72398a807874a507712365caeefd5eab9d0ad00299bc7aef1
  Scenario: Artist page fan segment chart change country, account filters
    When I visit fansifter artist page for "Adele"
    Then I receive fansifter artist page data responses
    And fans tab is opened for artist page
    # Temporarily disable the next step due to the data issue
    # And I choose an account with fewer fans in the account dropdown
    When I select "Australia" in the country dropdown
    Then I receive fansifter artist page data responses
    And "fans count by segment" data is updated
    And data in the fan segments chart is correct

  @FS-1690
  @id_af02e0539c079d6f89a498b1c00998d010a785e42bf85ae4dc92fffb2dbc19d8
  Scenario: Artist page fan segment chart for the artist who is not segmented
    Given I will mock "fansCountBySegment" with empty data
    When I search for an artist "Megan Hilty"
    And I select #1 search result containing "Megan Hilty"
    Then I receive fansifter artist page data responses
    And notice about not enough fans is shown in the Fan segments view
