Addendum to UI Testing with Stubbed Network Data
This post will only be helpful to you if you intend to use Joe Masilotti’s
strategy for stubbing network data in your UI Tests.
You will run into a problem when you try to set a key of
app.launchEnvironment to a string with an equals sign in it, like this one:
It is truncated at the first equals sign. Set a break point in your app code after
starting your UI test and run:
In the debugger to see (among a bunch of other key value pairs):
This means that your fake
.resume() method won’t get any json.
Don’t put any equals signs in an
And in your SeededDataTask class: