Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only state variant if content navigation test applies
The helper methods for checking the current variant (eg `universal_navigation_without_nav?`) were not checking whether the AB test applied or not. If the CDN set the response header and this method was used on a page that doesn’t qualify for the test, then it would give a false positive. * Add test to confirm expected behaviour * Update helpers to check AB test applies before checking variant
- Loading branch information
Showing
2 changed files
with
29 additions
and
10 deletions.
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
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