@deprecated
@fansifter
@audience-overview-page
@audience-export
Feature: Audience overview page export tests

  Background: Log in and create an audience for export
    Given an orchard employee fansifter-set-2-5-taurus for fansifter
    And I have the audience data:
      | Account      | Columbia Records Group |
      | Audience Use | Advertising            |
      | Artists      | First Aid Kit          |
      | Fan location | United States          |
      | Fan segment  | Include, Engaged Fans  |
    And I have authorized local storage for fansifter
    When I visit Audiences page
    And I open New audience page
    And I fill new audience data
    When I click on the Save button for new audience
    Then new audience is created
    When I open the Export audience sidebar

  @FS-2104
  @export-audience-file-lambda
  @cleanup-created-audience
  @id_1b20c8af63f816db460b7e0013411061135e25996fe4de7e5915b44b0e124946
  Scenario Outline: Audience overview page audience export
    And I set <audience-usage> audience usage
    And I export the audience
    Then generated audience is downloaded to your computer

    Examples:
      | audience-usage |
      | Google         |
      | Meta           |
      | Snapchat       |
      | Spotify        |
      | TikTok         |

  @FS-2180
  @cleanup-created-audience
  @id_f1189673f6ee30c183ad3814088298fab8ff5849409bf4c142a9a084d21e1745
  Scenario: Audience overview page export audience options
    Then all audience usage options are shown and have correct labels
    When I open Business Justification dropdown
    Then all Business Justification options are present in the list

  @FS-2181
  @cleanup-created-audience
  @id_c651e16e9323fc1df3e176e1989b0ed1699d3bddd5d3b704b0a735feaa7ecf23
  Scenario: Audience overview page export audience error message
    And I click Generate button in the Export sidebar
    Then I see options error message in the Export sidebar

  @FS-2338
  @cleanup-created-audience
  @id_b8a988052594b559edfcdfecb0262826cb48e6a960768e4f62bd388335fd24b1
  Scenario Outline: Audience overview page export request errors
    Given I block <requests> requests
    When I set Google audience usage
    And I click Generate button in the Export sidebar
    Then toast with the text is shown
      """
      Network error. Please try again.
      """

    Examples:
      | requests                       |
      | exportAudience                 |
      | audienceExport                 |
      | exportAudience, audienceExport |
