@fansifter
@email-campaigns
Feature: Email Campaigns exported CSV data verification

  @FS-6860
  @id_3ab087ed2bdb0449bf35761dd1957223bd62163580671673fb2db706358be70d
  Scenario: Email Campaigns > Export table to CSV with and without filters
    Given an orchard employee fansifter-set-2-12-ophiuchus for fansifter
    When I log in
    And I visit Email Campaigns page
    Then I receive email campaigns data from backend
    And I see at least one email campaign in the table
    # Default export
    When I export Email Campaigns table to CSV
    Then valid Email Campaigns CSV is downloaded
    # Apply filters: Sent + account + artist
    When I filter Email Campaigns by "Sent" status
    Then I receive email campaigns data from backend
    When I filter Email Campaigns by "Test Label" account
    Then I receive email campaigns data from backend
    When I filter Email Campaigns by "Wolfgang Amadeus Mozart" artist
    Then I receive email campaigns data from backend
    When I export Email Campaigns table to CSV
    Then valid Email Campaigns CSV is downloaded
    And I see only "Sent" status in Email Campaigns CSV
    And I see only "Test Label" account in Email Campaigns CSV
