@fansifter
@artist-page
Feature: Artist page - Fans by Campaigns 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
    When I visit fansifter artist page for "Adele"
    Then I receive fansifter artist page data responses
    When I select "Campaigns" in the grouping filter dropdown
    Then I receive all "fans over time" data from backend

  @FS-6073
  @id_0ddfeaa1b19f62dc7af64e51f0e2c0d2f236b7ee790e59d165965ad38ce8ab56
  Scenario: Fans by Campaigns legend table structure, data and tooltip total
    When "Campaigns" is selected in the artist page chart grouping filter
    Then fans chart is shown
    And fans by campaigns table is shown
    And fans by campaigns table has expected columns
    And acquisition channel tag is shown inside each campaign name cell
    And fans by campaigns table data matches API response
    When I hover a data point on the fans over time chart
    Then "Selected total" label is shown in fans chart tooltip

  @FS-6073
  @id_e0e29d0e0206ac7b04222f7daecf672b73c95b61df091b5ab0cbe41ee3e472cb
  Scenario: Fans by Campaigns empty state
    Given I will mock "fansOverTimeSummaryByCampaign" with empty data
    When I select "Past Year" in the period filter dropdown
    Then I receive all "fans over time" data from backend
    And fans by campaigns widget shows not enough fans message
