ChatTester.m: use modulo 4 operation when choosing photo since gallery is limited to 4 photos by row

This commit is contained in:
Gautier Pelloux-Prayer 2015-07-02 14:20:05 +02:00
parent 87b185f907
commit ef4c586c0d

View file

@ -164,7 +164,7 @@
}
// select random photo to avoid having the same multiple times
[tester choosePhotoInAlbum:@"Camera Roll" atRow:1 + messagesCount column:1];
[tester choosePhotoInAlbum:@"Camera Roll" atRow:1 column:1 + messagesCount % 4];
// wait for the quality popup to show up
[tester waitForTimeInterval:1];