@fansifter_permissions
Feature: Permissions for user with support team permissions

  Background:
    Given an orchard employee fansifter-support-team for fansifter
    When I log in

  @id_7ce8f938410b14818ebb17989635ec3452f01eb700332b0db440aee0f4beb777
  Scenario: Support team user can create and edit audiences
    And I have the audience data:
      | Account      | Test Label              |
      | Audience Use | Advertising             |
      | Artists      | Wolfgang Amadeus Mozart |
    When I open Audiences page
    And I open New audience page
    And I fill new audience data
    And I save new audience
    Then new audience is created

    When I click edit audience button
    And I update audience data
    And I save updated audience
    Then audience is updated

    When I click refresh audience button
    Then audience size is updated

  @id_8535fa76b3585944d5644e764111a313b66f940d2de3e28ac5fd5d3f3bc3c946
  Scenario: Support team user cannot archive audience
    When I open Audiences page
    Then I see at least one audience in the table
    When I try to archive last audience
    Then I see toast that this action is not available for Support/CRM users

  @id_5e712d38f012abcceaa3879951d97ab4a2ea858d888ab02cf7094aa09707bd0f
  Scenario: Support team user cannot delete email campaign
    When I visit Email Campaigns page
    And I filter Email Campaigns by "Draft" status
    Then I see at least one email campaign in the table
    When I try to delete email campaign from table
    Then I see toast that this action is not available for Support/CRM users
    When I open last email campaign in the table
    And I try to schedule email campaign
    Then I see toast that this action is not available for Support/CRM users
