@@ -32,7 +32,6 @@ import com.duckduckgo.app.global.events.db.UserEventsStore
3232import com.duckduckgo.app.pixels.AppPixelName
3333import com.duckduckgo.app.runBlocking
3434import com.duckduckgo.app.settings.db.SettingsDataStore
35- import com.duckduckgo.app.statistics.Variant
3635import com.duckduckgo.app.statistics.VariantManager
3736import com.duckduckgo.app.statistics.pixels.Pixel
3837import com.nhaarman.mockitokotlin2.mock
@@ -168,17 +167,14 @@ class BrowserTabFireproofDialogsEventHandlerTest {
168167 }
169168
170169 @Test
171- fun whenExpVariantUserDismissedFireproofLoginDialogwThenRegisterEvent () = coroutineRule.runBlocking {
172- givenFireproofLoginExperimentEnabled()
173-
170+ fun whenUserDismissedFireproofLoginDialogThenRegisterEvent () = coroutineRule.runBlocking {
174171 testee.onUserDismissedFireproofLoginDialog()
175172
176173 verify(mockUserEventsStore).registerUserEvent(FIREPROOF_LOGIN_DIALOG_DISMISSED )
177174 }
178175
179176 @Test
180- fun whenExpVariantUserDismissedFireproofLoginDialogTwiceInRowThenAskToDisableLoginDetection () = coroutineRule.runBlocking {
181- givenFireproofLoginExperimentEnabled()
177+ fun whenUserDismissedFireproofLoginDialogTwiceInRowThenAskToDisableLoginDetection () = coroutineRule.runBlocking {
182178 givenUserPreviouslyDismissedDialog()
183179
184180 testee.onUserDismissedFireproofLoginDialog()
@@ -188,8 +184,7 @@ class BrowserTabFireproofDialogsEventHandlerTest {
188184 }
189185
190186 @Test
191- fun whenExpVariantUserEnabledFireproofLoginDetectionThenNeverAskToDisableIt () = coroutineRule.runBlocking {
192- givenFireproofLoginExperimentEnabled()
187+ fun whenUserEnabledFireproofLoginDetectionThenNeverAskToDisableIt () = coroutineRule.runBlocking {
193188 givenUserEnabledFireproofLoginDetection()
194189 givenUserPreviouslyDismissedDialog()
195190
@@ -200,8 +195,7 @@ class BrowserTabFireproofDialogsEventHandlerTest {
200195 }
201196
202197 @Test
203- fun whenExpVariantUserDidNotDisableLoginDetectionThenNeverAskToDisableItAgain () = coroutineRule.runBlocking {
204- givenFireproofLoginExperimentEnabled()
198+ fun whenUserDidNotDisableLoginDetectionThenNeverAskToDisableItAgain () = coroutineRule.runBlocking {
205199 givenUserDidNotDisableLoginDetection()
206200 givenUserPreviouslyDismissedDialog()
207201
@@ -294,16 +288,6 @@ class BrowserTabFireproofDialogsEventHandlerTest {
294288 .thenReturn(UserEventEntity (FIREPROOF_LOGIN_DIALOG_DISMISSED ))
295289 }
296290
297- private fun givenFireproofLoginExperimentEnabled () {
298- whenever(mockVariantManager.getVariant()).thenReturn(
299- Variant (
300- key = " " ,
301- features = listOf (VariantManager .VariantFeature .LoginDetectionEnabled ),
302- filterBy = { true }
303- )
304- )
305- }
306-
307291 private suspend fun givenUserTriedFireButton () {
308292 whenever(mockUserEventsStore.getUserEvent(FIRE_BUTTON_EXECUTED )).thenReturn(UserEventEntity (FIRE_BUTTON_EXECUTED ))
309293 }
0 commit comments