Skip to content

Commit

Permalink
Do not run NTP Search Box experiment (#3537)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/1201037661562251/1208734291836545/f
Tech Design URL:
CC:

**Description**:
Avoid showing the NTP Search Box when running UI Tests.

**Definition of Done**:

* [x] Does this PR satisfy our [Definition of
Done](https://app.asana.com/0/1202500774821704/1207634633537039/f)?

---
###### Internal references:
[Pull Request Review
Checklist](https://app.asana.com/0/1202500774821704/1203764234894239/f)
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
[Pull Request
Documentation](https://app.asana.com/0/1202500774821704/1204012835277482/f)
  • Loading branch information
jotaemepereira authored Nov 12, 2024
1 parent bfcc449 commit a087cf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DuckDuckGo/HomePage/Model/NewTabPageSearchBoxExperiment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ protocol NewTabPageSearchBoxExperimentCohortDeciding {

struct DefaultNewTabPageSearchBoxExperimentCohortDecider: NewTabPageSearchBoxExperimentCohortDeciding {
var cohort: NewTabPageSearchBoxExperiment.Cohort? {
if NSApp.runType == .uiTests {
return nil
}

// We enroll all new users
if AppDelegate.isNewUser {
Expand Down

0 comments on commit a087cf8

Please sign in to comment.