Skip to content

Add command for saving screenshots in the camera roll#237

Open
sergiou87 wants to merge 1 commit intomoredip:masterfrom
sergiou87:master
Open

Add command for saving screenshots in the camera roll#237
sergiou87 wants to merge 1 commit intomoredip:masterfrom
sergiou87:master

Conversation

@sergiou87
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant