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

Support for RTL layout testing with Xcode 11 test plans #262

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

SebastianOsinski
Copy link
Contributor

This PR adds support for SNAPSHOT_CONFIGURATION_NAME environment variable which can be used in Test Plans configurations. When aforementioned variable exists, another level of directory nesting is added to store separate snapshots for each configuration.

Additionally, to fully support RTL layout testing, .leftToRight traits have been removed from base trait sets for each snapshotting device. This trait override caused RTL UIs to not be correctly rendered (see http://www.openradar.me/radar?id=5044259694575616).

See #168 for more background for this PR.

@SebastianOsinski
Copy link
Contributor Author

@mbrandonw @stephencelis Hi! Over a month passed since I opened this PR. Is there any chance to merge it or give any pointers / suggestions
:)?

@stephencelis
Copy link
Member

Hey @SebastianOsinski! It'd definitely be nice to add an environment component to test names to distinguish things like Xcode 11 test plans! @mbrandonw and I will thing things over and bike-shed the variable name and where it renders in the filename soon.

@SebastianOsinski
Copy link
Contributor Author

@stephencelis Hi! Did you have time to think it over? I'm always ready to update this PR according to your suggestions ;)

@@ -11,6 +11,12 @@ import UIKit
import WebKit
#endif

// Explanation for not providing `layoutDirection` trait in base traits for devices:
// .init(layoutDirection: .leftToRight) is commented out because of http://www.openradar.me/radar?id=5044259694575616
// When tests are ran with RTL language (e.g. Arabic), this override does not fully change layout to LTR (due to issue linked above)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Typo, should be does not fully change layout to RTL

@justinguo
Copy link

Do we have any update on this PR? My team is working on a test project and we highly anticipate this feature. Thanks all for the help!

@skywalkerdude
Copy link

bump on this PR

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.

4 participants