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

Add landscape orientation tests #236

Merged
merged 17 commits into from
Dec 6, 2023

Conversation

tinder-emanharoutunian
Copy link
Collaborator

Add landscape orientation tests for all safeArea and margin APIs

@tinder-emanharoutunian tinder-emanharoutunian changed the base branch from main to fix/consistent-test-implementations November 9, 2023 22:59
Comment on lines 68 to 70
// Primary purpose is to bypass an issue when snapshot testing margins on devices with a home button such as the
// iPhone 8/SE. Please see [here](https://github.com/pointfreeco/swift-snapshot-testing/issues/750)
// and [here](https://github.com/pointfreeco/swift-snapshot-testing/pull/757)
Copy link
Collaborator

@tinder-cfuller tinder-cfuller Nov 10, 2023

Choose a reason for hiding this comment

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

I believe this language can be improved. Maybe something such as:

Suggested change
// Primary purpose is to bypass an issue when snapshot testing margins on devices with a home button such as the
// iPhone 8/SE. Please see [here](https://github.com/pointfreeco/swift-snapshot-testing/issues/750)
// and [here](https://github.com/pointfreeco/swift-snapshot-testing/pull/757)
/// Used to avoid a bug causing invalid snapshots on devices with a home button.
///
/// May be removed and replaced with `allTestDevices` once snapshot issue is fixed.
///
/// Links:
/// https://github.com/pointfreeco/swift-snapshot-testing/issues/750
/// https://github.com/pointfreeco/swift-snapshot-testing/pull/757

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please see how this looks in Xcode quick help and adjust formatting of Links: as appropriate for ideal rendering.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Please see update. Note that I tried other ways of displaying the information so it looked polished in Quick Help, and referencing the links within a sentence worked best.

@tinder-emanharoutunian tinder-emanharoutunian changed the base branch from fix/consistent-test-implementations to main November 17, 2023 22:42
# Conflicts:
#	Tests/LayoutTests/LayoutItemTests.swift
#	Tests/LayoutTests/LayoutTests.swift
#	Tests/LayoutTests/UIView+AutoLayoutTests.swift
@tinder-emanharoutunian tinder-emanharoutunian merged commit b59a815 into main Dec 6, 2023
2 checks passed
@tinder-emanharoutunian tinder-emanharoutunian deleted the add-landscape-orientation-tests branch December 6, 2023 20:17
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.

3 participants