Add command for saving screenshots in the camera roll #237
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
@drodriguez and I've added a command for populating with photos the camera roll of an iOS device/simulator. We needed this in order to test our app properly, because our acceptance tests reset the simulator data before launching the app, assuring a clean environment for each scenario, but losing any photos we may have in the camera roll.
Therefore, we thought the cleanest way of putting images in the camera roll was adding a customised step for Frank so that each test could have different number of photos in the camera roll for different purposes.
Usage: just add the following step to an scenario
Given the device saves 7 screenshots in the camera roll
We think this command may be useful for more people, so if you like it feel free to merge it. If you think it needs some changes before merging, just tell me and I'll do my best :)
Thanks in advance!