@insights_regression
@insights_account
Feature: Account Page Recent Releases States

  Background:
    Given an orchard employee insightsemployee for insights
    And I log in

  @IN-130043
  @id_f69e9022450dc2d264f76b558f63288d9ba58f70cea9bce4c7ee47ef2b18ee5e
  Scenario Outline: Account Recent Releases States verification - <link> no data
    And I mock "recentReleases" insights request with empty data
    When I visit the insights <link> page
    Then "You don’t have any data yet" message in Recent Releases section

    Examples:
      | link                             |
      | /account/21786                   |
      | /account/26760/subaccount/46189/ |

  @IN-130044
  @id_6e99f5ed7e96ab1ac834b80e840ff4503d4064eebfc6aa4848388ccc7aeeacf9
  Scenario Outline: Account Recent Releases States verification - <link> failed state
    And I mock "recentReleases" insights request with error
    When I visit the insights <link> page
    Then "Sorry, we hit a snag" message in Recent Releases section
    And "Data failed to load. Please refresh the page." message in Recent Releases section

    Examples:
      | link                             |
      | /account/21786                   |
      | /account/26760/subaccount/46189/ |
