@deprecated
@fansifter
@artist-page
Feature: Artist page layout default state

  Background: Log in
    Given an orchard employee fansifter-set-2-2-aquarius for fansifter
    And I have authorized local storage for fansifter

  @FS-1790
  @FS-1705
  @FS-1661
  @FS-1722
  @FS-1763
  @FS-1746
  @FS-1782
  @FS-1586
  @id_b80988150f2648afdf589242cbdb5bc55d8b96202f91fca9fda262f0b6ce6401
  Scenario: Artist page layout the artist you don't have access to
    When I visit Artist page of artist I don't have access to
    Then page header with all elements is shown without fans
    And fans tab is opened for artist page
    And notice about no fan data is shown on artist page
    And total fans count is "—"
    And all fan data and charts are hidden
    When I try to visit not existing tab for artist page
    Then I see artist not found page
    And page header with all elements is shown without fans
    And total fans count is "—"
    And all fan data and charts are hidden

  @wip
  @FS-1728
  @FS-2291
  @id_a1ee6b9dcc2a7d7b054ca480b3801c0ff5d52bb008c22d1407ba69cc217914d9
  Scenario: Artist page layout
    When I visit Fansifter Search page
    And I search for an artist "Frank Sinatra"
    And I select #1 search result containing "Frank Sinatra"
    Then page header with all elements is shown with fans
    And fans tab is opened for artist page
    And I observe the sizes of all widgets
    And all widgets have the correct relative width
    And page body with filters and widgets is shown
    When I try to visit not existing tab for artist page
    Then I see artist not found page
    And all fan data and charts are hidden

  @FS-1494
  @FS-1660
  @FS-1704
  @FS-1720
  @FS-1745
  @FS-1762
  @FS-1789
  @FS-1781
  @no-accounts-with-fan-data
  @id_5ebdc2e6ad3e5764276dd1d51d7788353142972f594541f73de7ab865090fd58
  Scenario: Artist page layout for artist with no fan data
    When I visit Fansifter Search page
    And I search for an artist "Megan Hilty"
    And I select #1 search result containing "Megan Hilty"
    Then notice about no fan data is shown on artist page
    And fans tab is opened for artist page
    And total fans count is "—"
    Then fans view isn't shown
    Then fan segments view isn't shown
    And fans by age view isn't shown
    Then fans by locations view isn't shown
    And fans by gender view isn't shown
    And heavy rotation view isn't shown
    And fans are also listening to view isn't shown

  @FS-1776
  @FS-1742
  @FS-1759
  @FS-1533
  @FS-1717
  @FS-1665
  @FS-1784
  @FS-1650
  @id_f13230002435cb47dc963ec570206fe4a9d10f4fdb9aa642ee859a2bd56516c1
  Scenario: Artist page default state (artist with fans data in single label)
    When I visit Fansifter Search page
    And I search for an artist "Miley Cyrus"
    And I select #1 search result containing "Miley Cyrus"
    Then Global selected by default in the country picker
    And fans tab is opened for artist page
    And "Past 6 Months" number of days is selected in the artist page chart period filter
    And "Acquisition Channel" is selected in the artist page chart grouping filter
    And fans chart is shown
    And there is a "Acquisition Channel" column in the fans table
    And there is a column with "Past 6 Months" number of days in the fans table
    And data in the fan segments chart is correct
    And tooltips are available for each segment
    And Account dropdown is hidden
    And fans by age view is shown
    And fans by age chart is shown
    And text about percentages is displayed above the fans by age chart
    And fans by gender view is shown
    And fans by gender chart is shown
    And text about percentages is displayed above the fans by gender chart
    And fans by gender data is correct
    And fans by locations view is shown
    And data in the fans by locations table is correct
    And heavy rotation view is shown
    And heavy rotation chart is shown
    And text about percentages is displayed above the heavy rotation chart
    And fans by heavy rotation data is correct
    And Total fans number is received and displayed
    And Total fans GraphQl request query doesn't include countries
    And fans are also listening to view is shown
    And fans are also listening to artists are shown
    And "Past 30 Days" label is displayed under fans are also listening to name
    And fans are also listening to data is correct
