@deprecated
@fansifter
@audience-creation-page
Feature: Audience creation page - Mandatory fields

  Background: Log in (user has access to a few labels)
    Given an orchard employee fansifter-set-2-5-taurus for fansifter
    And I log in to fansifter silently
    And I visit Audiences page

  @FS-1827
  @id_6f0b6dabe84d59a35f7f0b030d2026902360f3682ec0a0f7bc0278f147f1fc09
  Scenario: Audience creation page mandatory fields error messages
    When I open New audience page
    And I click on the Save button for new audience
    Then required error message is displayed under each mandatory field for new audience

  @FS-1828
  @id_270ed28b1bc605ca575f8c518de1d384e609cc44d184f38653f5b16f04e4dc79
  Scenario: Audience creation page accounts list
    When I open New audience page
    Then only "Columbia Records Group (34514), Test Label (7123)" accounts are available for new audience creation
    When I select "Columbia Records Group (34514)" account for new audience
    Then account "Columbia Records Group (34514)" is selected for new audience
    When I select "Test Label (7123)" account for new audience
    Then account "Test Label (7123)" is selected for new audience

  @FS-1830
  @id_89b22008a260daf3eb30044fb2a23eb3236fa9d1df8802dfb339f514d1d6dfc2
  Scenario: Audience creation page artists list
    When I open New audience page
    Then artist multiselect is disabled for new audience
    When I select "Columbia Records Group (34514)" account for new audience
    And I open artist multiselect for new audience
    Then only artists to which user has access are displayed in multiselect
    When I select "Adele" artist in multiselect for new audience and close
    Then artist "Adele" is selected in multiselect for new audience
    When I open artist multiselect for new audience
    And I select "Aerosmith" artist in multiselect for new audience and close
    Then artist "Adele,Aerosmith" is selected in multiselect for new audience
    When I remove "Adele" artist from multiselect for new audience
    Then artist "Aerosmith" is selected in multiselect for new audience

  @FS-1831
  @id_4de87ab17991be944a0eabfe03ba5305444c74cb7e9aaabd5382c365253e83e9
  Scenario: Audience creation page audience name
    When I open New audience page
    And I select "Columbia Records Group (34514)" account for new audience
    And I open artist multiselect for new audience
    And I select "Adele" artist in multiselect for new audience and close
    Then name of the audience is not populated
    When I enter audience name "Adele's audience"
    Then Name of the audience is "Adele's audience"
    When I open artist multiselect for new audience
    And I select "Calvin Harris" artist in multiselect for new audience and close
    Then Name of the audience is "Adele's audience"

  @FS-1833
  @cleanup-created-audience
  @id_a22351f1e50fa9c6024ed4268ed6f7d0f7874e84a0408e1d55d08714658b80ac
  Scenario: Audience creation page create audience
    When I open New audience page
    And I select "Columbia Records Group (34514)" account for new audience
    And I open artist multiselect for new audience
    And I select "First Aid Kit" artist in multiselect for new audience and close
    And I enter random audience name
    And I click on the Save button for new audience
    Then new audience is created
