@insights_regression
@insights_amplitude
Feature: Sticky Header Amplitude event verification

  @IN-13282
  @id_ee972259e7a324bd7ffe0994289e6c69e4dde8db03a4ef5cc5fc1b40bd4b5029
  Scenario: Sticky Header Amplitude event verification.
    Given an orchard employee insightsemployee for insights
    And I log in to Insights silently
    When I visit the insights /account/21786 page
    And I can scroll to Recent Releases on the Page
    Then I can click back to top on sticky header
    And I can wait for Back to Top clicked in amplitudeEvent
    And I can verify "path":"/account/21786/" in amplitude events
    And I can verify "brand":"orchard" in amplitude events
    And I can verify "category":"Engagement" in amplitude events
    And I can verify "name":"account" in amplitude events
    And I can verify "page":"account" in amplitude events
    And I can verify "tab":"overview" in amplitude events

    Then I visit the insights /channel/UCmBA_wu8xGg1OfOkfW13Q0Q page
    And I can scroll to Estimated Gross Revenue on the Page
    Then I can click back to top on sticky header
    And I can wait for Back to Top clicked in amplitudeEvent
    And I can verify "path":"/channel/UCmBA_wu8xGg1OfOkfW13Q0Q" in amplitude events
    And I can verify "brand":"orchard" in amplitude events
    And I can verify "category":"Engagement" in amplitude events
    And I can verify "name":"channel" in amplitude events
    And I can verify "page":"channel" in amplitude events
    And I can verify "tab":"overview" in amplitude events
