-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Update snapshotting logic #407
Conversation
BREAKING CHANGE: the minimum supported Xcode SDK version is bumped to 10.2
…o snapshots # Conflicts: # PrivateHeaders/XCTest/XCUIApplicationProcess.h # WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.m # WebDriverAgentLib/Categories/XCUIApplicationProcess+FBQuiescence.m # WebDriverAgentLib/Categories/XCUIElement+FBUtilities.m # WebDriverAgentLib/Commands/FBSessionCommands.m # WebDriverAgentLib/Utilities/FBConfiguration.h # WebDriverAgentLib/Utilities/FBConfiguration.m # WebDriverAgentLib/Utilities/FBXPath.m
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆒
Will catch up with recent refactors this weekend
@@ -0,0 +1,34 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 👍
Not sure by this or #404 , but I found a scroll scenario failed in https://github.com/appium/ruby_lib_core/blob/7801efa72b10ff3c601374af3e0e7dc68e3c8733/test/functional/ios/webdriver/w3c_actions_test.rb#L44 with the latest beta on CI. (I retried it a couple of times) |
Thanks for checking it @KazuCocoa |
This approach tries to align the way we take snapshots with custom attributes to what XCTest does. Also, if a snapshot with custom attributes fails then it is going to fallback to the default one after
customSnapshotTimeout
expires. This ensures we can always retrieve the same tree that XCTest, but does not ensure same values for custom attributes (like thevisible
one). It is also possible to completely disable custom attributes by settingcustomSnapshotTimeout
to zero in order to avoid any potentially inconsistent results