Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47934092 authored by lyn's avatar lyn
Browse files

Test that single child groups are ungrouped in bundle

Bug: 389839319
Test: this
Flag: TEST_ONLY
Change-Id: Idd560f20ec531faab86933345320510b6c918b07
parent f220d6d9
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -279,6 +279,24 @@ public class ShadeListBuilderTest extends SysuiTestCase {
        );
    }

    @Test
    @EnableFlags(NotificationBundleUi.FLAG_NAME)
    public void testSingleNotifPromotedOutOfGroupInBundle() {
        mListBuilder.setBundler(TestBundler.INSTANCE);

        // GIVEN a bundle with a group with one child
        addGroupChild(0, PACKAGE_1, GROUP_1, BUNDLE_1);
        addGroupSummary(1, PACKAGE_1, GROUP_1, BUNDLE_1);

        dispatchBuild();

        verifyBuiltList(
                bundle(
                        BUNDLE_1,
                        notif(0) // Child is promoted out of group inside bundle
                )
        );
    }

    @Test
    @EnableFlags(NotificationBundleUi.FLAG_NAME)