Skip to content

Commit 7924095

Browse files
committed
Rename test functions to use consistent terminology for animated info panel
1 parent d375e84 commit 7924095

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/src/test/java/com/duckduckgo/app/tabs/ui/TabSwitcherViewModelTest.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ class TabSwitcherViewModelTest {
490490
}
491491

492492
@Test
493-
fun `when Animation Tile Visible then Tab Switcher Items Include Animation Tile And Tabs`() = runTest {
493+
fun `when animated info panel then tab switcher items include animation tile and tabs`() = runTest {
494494
tabSwitcherAnimationFeature.self().setRawStoredState(State(enable = true))
495495

496496
val tab1 = TabEntity("1", position = 1)
@@ -511,7 +511,7 @@ class TabSwitcherViewModelTest {
511511
}
512512

513513
@Test
514-
fun `when Animation Tile Not Visible then Tab Switcher Items Contain Only Tabs`() = runTest {
514+
fun `when animated info panel not visible then tab switcher items contain only tabs`() = runTest {
515515
tabSwitcherAnimationFeature.self().setRawStoredState(State(enable = true))
516516

517517
val tab1 = TabEntity("1", position = 1)
@@ -531,7 +531,7 @@ class TabSwitcherViewModelTest {
531531
}
532532

533533
@Test
534-
fun `when Tab Switcher Animation Feature disabled then Tab Switcher Items Contain Only Tabs`() = runTest {
534+
fun `when tab switcher animation feature disabled then tab switcher items contain only tabs`() = runTest {
535535
initializeViewModel(FakeTabSwitcherDataStore())
536536
tabSwitcherAnimationFeature.self().setRawStoredState(State(enable = false))
537537
whenever(mockTabSwitcherPrefsDataStore.isAnimationTileDismissed()).thenReturn(flowOf(true))
@@ -549,7 +549,7 @@ class TabSwitcherViewModelTest {
549549
}
550550

551551
@Test
552-
fun `when Animation Tile positive button clicked then Animation Tile is still visible`() = runTest {
552+
fun `when animated info panel positive button clicked then animated info panel is still visible`() = runTest {
553553
initializeViewModel(FakeTabSwitcherDataStore())
554554
whenever(mockWebTrackersBlockedAppRepository.getTrackerCountForLast7Days()).thenReturn(15)
555555

@@ -567,7 +567,7 @@ class TabSwitcherViewModelTest {
567567
}
568568

569569
@Test
570-
fun `when Animation Tile negative button clicked then Animation Tile is removed`() = runTest {
570+
fun `when animated info panel negative button clicked then animated info panel is removed`() = runTest {
571571
initializeViewModel(FakeTabSwitcherDataStore())
572572

573573
tabSwitcherAnimationFeature.self().setRawStoredState(State(enable = true))
@@ -586,7 +586,7 @@ class TabSwitcherViewModelTest {
586586
}
587587

588588
@Test
589-
fun `when Animation Tile visible then impressions pixel fired`() = runTest {
589+
fun `when animated info panel visible then impressions pixel fired`() = runTest {
590590
initializeViewModel(FakeTabSwitcherDataStore())
591591
tabSwitcherAnimationFeature.self().setRawStoredState(State(enable = true))
592592
whenever(mockWebTrackersBlockedAppRepository.getTrackerCountForLast7Days()).thenReturn(15)
@@ -597,7 +597,7 @@ class TabSwitcherViewModelTest {
597597
}
598598

599599
@Test
600-
fun `when Animation Tile clicked then tapped pixel fired`() = runTest {
600+
fun `when animated info panel clicked then tapped pixel fired`() = runTest {
601601
initializeViewModel(FakeTabSwitcherDataStore())
602602
tabSwitcherAnimationFeature.self().setRawStoredState(State(enable = true))
603603
whenever(mockWebTrackersBlockedAppRepository.getTrackerCountForLast7Days()).thenReturn(15)
@@ -608,7 +608,7 @@ class TabSwitcherViewModelTest {
608608
}
609609

610610
@Test
611-
fun `when Animation Tile negative button clicked then dismiss pixel fired`() = runTest {
611+
fun `when animated info panel negative button clicked then dismiss pixel fired`() = runTest {
612612
initializeViewModel(FakeTabSwitcherDataStore())
613613
tabSwitcherAnimationFeature.self().setRawStoredState(State(enable = true))
614614
whenever(mockWebTrackersBlockedAppRepository.getTrackerCountForLast7Days()).thenReturn(15)

0 commit comments

Comments
 (0)