-
Notifications
You must be signed in to change notification settings - Fork 174
Failed to get matching snapshots #83
Comments
Hey there! Is the sample App working for you? Also, are you integrating the library from CocoaPods repository, or are you referencing SwiftMonkey directly from GitHub (master)? |
@wojciechczerski Hi, thanks for quick response. I use CocoaPods, and I see it origins from this call |
Could you try referencing SwiftMonkey in your pod 'SwiftMonkey', :git => 'https://github.com/zalando/SwiftMonkey.git' I would like to check whether perhaps the existing code on master could solve your issue. |
@wojciechczerski ja will try, and also I have this issue which happens only during monkey tests
|
When you fetch the code from GitHub, could you also try replacing |
@wojciechczerski seems to work, thanks |
@wojciechczerski any news about this issue? |
@adario Hey there! Is this how your pod 'SwiftMonkey', :git => 'https://github.com/zalando/SwiftMonkey.git' If the |
@wojciechczerski Hey there, thanks for the quick reply — |
Have you tried deleting the pod 'SwiftMonkey', :git => 'https://github.com/zalando/SwiftMonkey.git', :commit => '68f49bb69381103224b0e77ab615baac8b1fd750' Please let me know whether that helps. |
@wojciechczerski adding the commit ID in the Podfile (after manually removing Podfile.lock and Pods) seems to work — that is, the addDefaultXCTestPublicActions method is now visible... |
It looks like the public actions do work on actual devices — cool! |
Glad to hear it worked for you! As for adding extra actions - I am not sure. SwiftMonkey used to support quite a lot of actions, this was however possible due to usage of private APIs. These APIs do not exist anymore therefore public XCTest actions are used. Maybe it would be possible to combine these actions to simulate a pinch or rotate gestures, but I haven't checked that yet (it's still on my TODO). |
@wojciechczerski I've tried adding public XCTest actions for swipe and rotate: unfortunately, they're not very useful. That is, they are executed correctly, as well as shown by MonkeyPaws, but since they're run via the application XCUIElement instead of XCUICoordinate, they don't produce the expected results because of truly counterintuitive locations... |
Thanks for the library. I have an issue with the latest release
Here is my setup
The text was updated successfully, but these errors were encountered: