Skip to content

Commit

Permalink
Merge pull request #1225 from alphagov/remove-search-analytics-tests
Browse files Browse the repository at this point in the history
Remove the search-analytics smokey tests
  • Loading branch information
leenagupte authored Jan 9, 2024
2 parents 6abbdb2 + 7ea512e commit 58bc550
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions features/apps/finder_frontend.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ Feature: Finder Frontend
When I search for "<keywords>"
Then I should see some search results
And the search results should be unique
And search analytics for "<keywords>" are reported
When I go to the next page
Then the "contentsClicked" event is reported
When I click result 1
Then the "navFinderLinkClicked" event for result Search.1 is reported
And the "UX" event for result click is reported

Examples:
| keywords |
Expand Down
15 changes: 0 additions & 15 deletions features/step_definitions/analytics.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
Then /^search analytics for "(.*)" are reported$/ do |term|
sought = CGI::escape("/search/all?keywords=#{term.sub(' ', '+')}")
expect(browser_has_analytics_request_containing sought).to be(true)
end

Then /^the "(.*)" event is reported$/ do |event|
sought = "ec=#{event}"
expect(browser_has_analytics_request_containing sought).to be(true)
end

Then /^the "(.*)" event for result (.*) is reported$/ do |event, n|
sought = "ec=#{event}&ea=#{n}"
expect(browser_has_analytics_request_containing sought).to be(true)
end

Then /^the page view should be tracked$/ do
sought = "t=pageview"
expect(browser_has_analytics_request_containing sought).to be(true)
Expand Down

0 comments on commit 58bc550

Please sign in to comment.