clearState
command doesn't reliably clear UserDefaults on iOS
#1601
Labels
bug
Something isn't working
maestro cli
Related to the command-line Maestro tool
platform: ios
Testing iOS apps is affected
Describe the bug
Launching an app with
clearState
or callingclearState
directly doesn't reliably clearUserDefaults
in an iOS app.To Reproduce
UserDefaults
in an iOS app.or
-clearState
followed by-launchApp
4. Observe that
UserDefaults
still contains the previously written value.Expected behavior
userDefaults
should be cleared and the app should be launched as though it had not been used previouslyEnvironment information (please complete the following information):
Workspace (if applicable)
MaestroUserDefaultsTestApp.zip
Additional context
A workaround I've found is using
-clearState
before runninglaunchApp
with theclearState
option set totrue
as far as I can tell this should delete everything twice which seems to ensure that the app is fairly reliably launched with a completely clear state.The text was updated successfully, but these errors were encountered: