Skip to content

Commit d03bdf6

Browse files
committed
test: paykit ui flag test ids
1 parent 035cfcd commit d03bdf6

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

Bitkit/Views/Settings/DevSettingsView.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ struct DevSettingsView: View {
7171
}
7272
}
7373
}
74-
)
74+
),
75+
testIdentifier: "PaykitUiToggle"
7576
)
7677
}
7778

@@ -181,7 +182,7 @@ struct DevSettingsView: View {
181182
Button("Enable") {
182183
if PaykitFeatureFlags.isUIAvailable {
183184
isPaykitUIEnabled = true
184-
app.toast(type: .success, title: "Paykit UI enabled")
185+
app.toast(type: .success, title: "Paykit UI enabled", accessibilityIdentifier: "PaykitUiEnabledToast")
185186
}
186187
}
187188
} message: {
@@ -218,12 +219,17 @@ struct DevSettingsView: View {
218219

219220
if let cleanupError {
220221
PrivatePaykitService.setContactSharingCleanupPending(true)
221-
app.toast(type: .error, title: "Paykit UI disabled", description: cleanupError.localizedDescription)
222+
app.toast(
223+
type: .error,
224+
title: "Paykit UI disabled",
225+
description: cleanupError.localizedDescription,
226+
accessibilityIdentifier: "PaykitUiDisabledToast"
227+
)
222228
return
223229
}
224230

225231
PrivatePaykitService.setContactSharingCleanupPending(false)
226-
app.toast(type: .success, title: "Paykit UI disabled")
232+
app.toast(type: .success, title: "Paykit UI disabled", accessibilityIdentifier: "PaykitUiDisabledToast")
227233
}
228234
}
229235

0 commit comments

Comments
 (0)