diff options
| author | Kalle Lindström <karl.lindstrom@mullvad.net> | 2025-04-28 16:43:01 +0200 |
|---|---|---|
| committer | Jonatan Rhodin <jonatan.rhodin@mullvad.net> | 2025-04-30 09:27:03 +0200 |
| commit | e178b2759071ce6cb3f7ee0d6d47e28fd55dbed4 (patch) | |
| tree | dd466ea13d90e9a9dd210c5d729f1c66d82aa1d0 /android/lib/ui/component/src | |
| parent | bbbef9d05e5bc7e989f00975ea4141cecd187661 (diff) | |
| download | mullvadvpn-e178b2759071ce6cb3f7ee0d6d47e28fd55dbed4.tar.xz mullvadvpn-e178b2759071ce6cb3f7ee0d6d47e28fd55dbed4.zip | |
Move all test tags to new lib.ui.tag module
Diffstat (limited to 'android/lib/ui/component/src')
2 files changed, 9 insertions, 12 deletions
diff --git a/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/AnimatedNotificationBanner.kt b/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/AnimatedNotificationBanner.kt index 5d1d7f0e74..979f63920a 100644 --- a/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/AnimatedNotificationBanner.kt +++ b/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/AnimatedNotificationBanner.kt @@ -29,9 +29,9 @@ import net.mullvad.mullvadvpn.lib.model.InAppNotification import net.mullvad.mullvadvpn.lib.model.StatusLevel import net.mullvad.mullvadvpn.lib.theme.Dimens import net.mullvad.mullvadvpn.lib.theme.color.warning -import net.mullvad.mullvadvpn.lib.ui.component.test.NOTIFICATION_BANNER -import net.mullvad.mullvadvpn.lib.ui.component.test.NOTIFICATION_BANNER_ACTION -import net.mullvad.mullvadvpn.lib.ui.component.test.NOTIFICATION_BANNER_TEXT_ACTION +import net.mullvad.mullvadvpn.lib.ui.tag.NOTIFICATION_BANNER_ACTION_TEST_TAG +import net.mullvad.mullvadvpn.lib.ui.tag.NOTIFICATION_BANNER_TEST_TAG +import net.mullvad.mullvadvpn.lib.ui.tag.NOTIFICATION_BANNER_TEXT_ACTION_TEST_TAG @Composable fun AnimatedNotificationBanner( @@ -84,7 +84,7 @@ private fun Notification(modifier: Modifier = Modifier, notificationBannerData: bottom = Dimens.smallPadding, ) .animateContentSize() - .testTag(NOTIFICATION_BANNER) + .testTag(NOTIFICATION_BANNER_TEST_TAG) ) { val (status, textTitle, textMessage, actionIcon) = createRefs() NotificationDot( @@ -146,7 +146,7 @@ private fun Notification(modifier: Modifier = Modifier, notificationBannerData: ) { message.onClick() } - .testTag(NOTIFICATION_BANNER_TEXT_ACTION) + .testTag(NOTIFICATION_BANNER_TEXT_ACTION_TEST_TAG) } else { it } @@ -197,7 +197,10 @@ private fun NotificationAction( modifier: Modifier = Modifier, ) { - IconButton(modifier = modifier.testTag(NOTIFICATION_BANNER_ACTION), onClick = onClick) { + IconButton( + modifier = modifier.testTag(NOTIFICATION_BANNER_ACTION_TEST_TAG), + onClick = onClick, + ) { Icon( modifier = Modifier.padding(Dimens.notificationIconPadding), imageVector = imageVector, diff --git a/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/test/ComposeTestTagConstants.kt b/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/test/ComposeTestTagConstants.kt deleted file mode 100644 index 24189d1469..0000000000 --- a/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/test/ComposeTestTagConstants.kt +++ /dev/null @@ -1,6 +0,0 @@ -package net.mullvad.mullvadvpn.lib.ui.component.test - -// ConnectScreen - Notification banner -const val NOTIFICATION_BANNER = "notification_banner" -const val NOTIFICATION_BANNER_ACTION = "notification_banner_action" -const val NOTIFICATION_BANNER_TEXT_ACTION = "notification_banner_text_action" |
