Skip to content

Commit fb88771

Browse files
committed
test: pass the notification-access arguments DashboardTest has lacked since 7460d25
7460d25 added notificationAccessNeeded and onEnableNotificationAccess to DashboardSetupChecklistCard without updating the instrumented test, so compileDebugAndroidTestKotlin has failed since 2026-09-26. The test was wrong, not the card: the three calls now pass false and a no-op, which keeps each case's meaning (every check ready, nothing asked for).
1 parent 792d815 commit fb88771

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • app/src/androidTest/java/com/sysadmindoc/callshield/ui/screens/main

‎app/src/androidTest/java/com/sysadmindoc/callshield/ui/screens/main/DashboardTest.kt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,13 @@ class DashboardTest {
170170
callScreenerReady = true,
171171
overlayGranted = true,
172172
notificationsGranted = true,
173+
notificationAccessNeeded = false,
173174
onReviewPermissions = {},
174175
onSyncDatabase = {},
175176
onEnableCallScreener = {},
176177
onEnableOverlay = {},
177178
onEnableNotifications = {},
179+
onEnableNotificationAccess = {},
178180
)
179181
}
180182

@@ -216,12 +218,14 @@ class DashboardTest {
216218
callScreenerReady = false,
217219
overlayGranted = true,
218220
notificationsGranted = true,
221+
notificationAccessNeeded = false,
219222
onReviewPermissions = {},
220223
onSyncDatabase = {},
221224
// The phone can't be asked for the role, so the row can only say what's missing.
222225
onEnableCallScreener = null,
223226
onEnableOverlay = {},
224227
onEnableNotifications = {},
228+
onEnableNotificationAccess = {},
225229
)
226230
}
227231

@@ -262,11 +266,13 @@ class DashboardTest {
262266
callScreenerReady = false,
263267
overlayGranted = true,
264268
notificationsGranted = true,
269+
notificationAccessNeeded = false,
265270
onReviewPermissions = {},
266271
onSyncDatabase = {},
267272
onEnableCallScreener = { screenerRequests++ },
268273
onEnableOverlay = {},
269274
onEnableNotifications = {},
275+
onEnableNotificationAccess = {},
270276
)
271277
}
272278

0 commit comments

Comments
 (0)