forked from zelo72/mastodon-ios
chore: use the first photo for compose snapshot
This commit is contained in:
parent
9c92f290a5
commit
c94d988be5
|
@ -171,8 +171,8 @@ extension MastodonUISnapshotTests {
|
||||||
XCTAssert(photoLibraryButton.waitForExistence(timeout: 5))
|
XCTAssert(photoLibraryButton.waitForExistence(timeout: 5))
|
||||||
photoLibraryButton.tap()
|
photoLibraryButton.tap()
|
||||||
|
|
||||||
// select photo
|
// select the first photo
|
||||||
let photo = app.images["Photo, August 09, 2012, 2:52 AM"].firstMatch
|
let photo = app.images.containing(NSPredicate(format: "label BEGINSWITH 'Photo'")).element(boundBy: 0).firstMatch
|
||||||
XCTAssert(photo.waitForExistence(timeout: 5))
|
XCTAssert(photo.waitForExistence(timeout: 5))
|
||||||
photo.tap()
|
photo.tap()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue