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

Another take at landscape mode #1832

Closed
wants to merge 6 commits into from
Closed

Conversation

bartekpacia
Copy link
Contributor

No description provided.

Problem: I have no idea why, but sometimes XCUIDevice.shared.orientation
changes what it returns, even when no actual orientation change happened.

I mainly noticed this happening at the beginning of the flow, where first few
calls to it return portrait, and the rest returns horizontal. This break everything.
Copy link

Make sure to run ./maestro-ios-xctest-runner/build-maestro-ios-runner.sh with every swift change

@bartekpacia bartekpacia deleted the fix/ios_landscape_mode_new branch July 26, 2024 13:07
@bartekpacia
Copy link
Contributor Author

Note for the future:

What went wrong here

The orientation returned was changing, even though the simulator was still.

For example, at the beginning of the flow, the first few calls to it XCUIDevice.shared.orientation return portrait, but after those first calls, it starts to returns horizontal.

That was breaking everything.

It sounds weird, but that's what I saw.

Possible action item

Create a minimal repro app and call XCUIDevice.shared.orientation many times and try to reproduce it.

IMHO it's unlikely that it was a problem/bug in Maestro. I think it's a problem in XCUIDevice.shared.orientation.

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.

1 participant