@insights_regression
@insights_account
Feature: Account Page Youtube Views States

  Background: Account Youtube views States verification
    Given an orchard employee insightsemployee for insights
    And I log in to Insights silently

  @IN-13186
  @IN-130041
  @id_4affb41b2e24c4c902f22381b10cadea86c520fdccd9688652fc8fd106307b0b
  Scenario Outline: Account Youtube views States verification. - <widget> no data
    When I visit the insights /account/21786<link> page
    And I can scroll to <widget> on the Page
    Then "You don’t have any data yet" message on the page

    Examples:
      | link    | widget                |
      |         | YouTube Views         |
      | /videos | Performance over Time |

  @IN-13186
  @IN-130042
  @id_d33ae7c074e454ed7614a1b5a59665617bfda4fc4efdf37150b3293be6101a11
  Scenario Outline: Account Youtube views States verification. - <widget> failed state
    When I visit the insights /account/21786<link> page
    And I can scroll to <widget> on the Page
    Then "Sorry, we hit a snag" message on the page
    And "Data failed to load. Please refresh the page." message on the page

    Examples:
      | link    | widget                |
      |         | YouTube Views         |
      | /videos | Performance over Time |

  @IN-13528
  @id_793772571133d00c93b47c757bd0f5e6236a88acea40b1b7679a5d4b5b386918
  Scenario: SubAccount Youtube views not present
    When I visit the insights /account/26760/subaccount/46189/ page
    Then I can verify YouTube Views is not visible
