Skip to content
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

Merged
merged 29 commits into from
Oct 22, 2020
Merged

refactor: Update snapshotting logic #407

merged 29 commits into from
Oct 22, 2020

Conversation

mykola-mokhnach
Copy link

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 the visible one). It is also possible to completely disable custom attributes by setting customSnapshotTimeout to zero in order to avoid any potentially inconsistent results

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
@mykola-mokhnach mykola-mokhnach merged commit 7a93459 into master Oct 22, 2020
@mykola-mokhnach mykola-mokhnach deleted the snapshots branch October 22, 2020 12:49
Copy link
Member

@KazuCocoa KazuCocoa left a 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 @@
/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👍

@KazuCocoa
Copy link
Member

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)
Will take a look at the cause probably this weekend.

@mykola-mokhnach
Copy link
Author

Thanks for checking it @KazuCocoa
The local integration tests all pass, so it would be interesting to know what went wrong there.

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.

None yet

3 participants