You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@touchdiamond58 One way of doing this would be to pass launch arguments and then populate fields with fake data directly in your app. This is a simplified example:
// In UI testsoverridefunc setUp(){
super.setUp()
continueAfterFailure = false
app =XCUIApplication()
app.launchArguments.append("--UITests")}// In your app target
if CommandLine.arguments.contains("--UITests"){// Use fake data}else{// Use actual data}
It would be easier to achieve that by using some kind of abstractions, such as data providers, mock services, etc.
I want to populate fields with fake data, how can I add it to my UITests!?
The text was updated successfully, but these errors were encountered: