File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments