NTP-59414 | Fixed Arc test cases (#16135)

This commit is contained in:
Aditya Narayan Malik
2025-05-12 15:45:37 +05:30
committed by GitHub
parent 37ec2268ea
commit 3bee0354ab

View File

@@ -101,7 +101,7 @@ class ArcStatusWidgetUtilsTest {
)
assert(result1?.mainText == "If recharge is pending after 28 Jan, 02:00 PM")
assert(result1?.subText == "you will get extra")
assert(result1?.icon == CommonR.drawable.arc_protect_icon)
assert(result1?.icon == null)
// 2. Test case: Pending status, Arc Protected, Non-Recharge Category
val result2 =
@@ -121,7 +121,7 @@ class ArcStatusWidgetUtilsTest {
)
assert(result2?.mainText == "If bill is pending after 28 Jan, 02:00 PM")
assert(result2?.subText == "you will get extra")
assert(result2?.icon == CommonR.drawable.arc_protect_icon)
assert(result2?.icon == null)
// 3. Test case: Arc Delayed, Debit status, BBPS Recharge Product
val result3 =
@@ -262,7 +262,7 @@ class ArcStatusWidgetUtilsTest {
)
assertEquals(result9?.mainText, "If payment is pending after 28 Jan, 02:00 PM")
assert(result9?.subText == "you will get extra")
assert(result9?.icon == CommonR.drawable.arc_protect_icon)
assert(result9?.icon == null)
// 10. Test case: Arc Delayed, Debit status, UPI Product
val result10 =
@@ -373,7 +373,7 @@ class ArcStatusWidgetUtilsTest {
productType = OrderProductType.UPI.name,
isArcDelayed = true,
isArcProtected = true,
isArcRewardDisbursed = true,
isArcRewardDisbursed = false,
arcThresholdInDays = arcThresholdInDays,
orderTimestamp = orderTimestamp,
orderTerminalTimestampFormatted = orderTerminalTimestampFormatted,