-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3053 from alphagov/aa-test-es-6.7
AA test for Search Results
- Loading branch information
Showing
5 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module AbTests::ElasticSearchAaTestable | ||
def elastic_search_aa_test | ||
GovukAbTesting::AbTest.new( | ||
"EsSixPointSeven", | ||
dimension: 41, | ||
allowed_variants: %w[A B Z], | ||
control_variant: "Z", | ||
) | ||
end | ||
|
||
def page_under_test? | ||
request.path.include?("/search/all") | ||
end | ||
|
||
def set_requested_variant | ||
@requested_variant = elastic_search_aa_test.requested_variant(request.headers) | ||
@requested_variant.configure_response(response) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters