maestro icon indicating copy to clipboard operation
maestro copied to clipboard

Landscape support for iOS

Open johntmcintosh opened this issue 2 years ago • 18 comments

iOS testing currently does not support landscape mode. (I am not sure about the current status of landscape support with Android)

As a quick test, download the samples:

maestro download-samples
cd ./samples
unzip sample.zip
xcrun simctl install Booted Wikipedia.app

And update the iOS flow to:

appId: org.wikimedia.wikipedia
---
- launchApp
- tapOn: "Search Wikipedia"
- inputText: "tacos"

Launch the simulator and rotate into landscape mode, and then run:

maestro test ios-flow.yaml

The test reports that it passes, but it does not navigate into the search screen to type into the text.

Running maestro studio shows a mismatch where the overlay content appears to be laid out in landscape, but the image of the app's screen is rotated 90 degrees:

Screen Shot 2023-01-03 at 10 27 16 AM

NOTE: This was discussed in a couple of slack threads, but I'm adding a ticket here so myself and anyone else interested can follow along for status updates or to be notified when support is available.

  • https://mobile-dev-inc.slack.com/archives/C041FU72T54/p1671032621327279
  • https://mobile-dev-inc.slack.com/archives/C041FU72T54/p1671642307201909

johntmcintosh avatar Jan 03 '23 16:01 johntmcintosh

I have the same issue. I have an app that only runs in landscape mode on iPad and maestro mismatches all the elements. If I test with portrait orientation, everything works.

mateioprea avatar Jan 21 '23 07:01 mateioprea

Hey guys, somebody knows if there is any progress regarding this issue? That's the only blocker we have to use maestro in our tests.

kdsanchezv avatar Feb 17 '23 10:02 kdsanchezv

I'm having the same issue for an Ipad app that is mainly used in landscape mode.

Guyentie avatar Feb 21 '23 11:02 Guyentie

Hi there! 👋 I'm having the same issue with my project in which it's specifically designed in landscape mode. Is there any update or ongoing investigations about this? Thanks for the update! 👍

Plimsky avatar Mar 20 '23 18:03 Plimsky

Hi, this is something we'd like to add but we can't provide an ETA yet. We'll update this thread with news.

ArthurSav avatar May 30 '23 12:05 ArthurSav

I have the same issue with an Ipad app mainly used in landscape mode.

WenzhaoTan-Chowbus avatar Jun 21 '23 09:06 WenzhaoTan-Chowbus

What is the status with this? It should be set with a high priority. That's not an enhancement, it's a really nasty defect. It's been 6 months already, and no one has done anything about it.

meboev-fourth avatar Jul 03 '23 16:07 meboev-fourth

same issue. we have a video player we can toggle to fullscreen and all the elements are mismatched in maestro studio

mdethlefs avatar Jul 07 '23 08:07 mdethlefs

Still no updates? Is there any roadmap of the project?

ccfiel avatar Jul 15 '23 05:07 ccfiel

This is fine in android but in iOS was not fine, it will just complete the steps but not executed in the emulator. See video. @ArthurSav

Untitled_ Jul 18 2023 3_36 PM.webm

ccfiel avatar Jul 18 '23 07:07 ccfiel

any updates? we have a video player in our app and we basically can't test anything in fullscreen mode because of this. both iOS and Android.

mdethlefs avatar Aug 14 '23 07:08 mdethlefs

I have issue with Android tablet in Maestro Cloud (everything is fine in local).

ericledonge avatar Aug 30 '23 19:08 ericledonge

I have the same issue. When is this going to be worked on?

raymond-tetteh avatar Aug 31 '23 09:08 raymond-tetteh

Is there any news on this feature? It's really preventing us to use Maestro for our UI tests.

dinisnunes1 avatar Dec 14 '23 14:12 dinisnunes1

+1

davemess avatar May 14 '24 15:05 davemess

have the same issue on iPad in landscape orientation, any updates?

chiefchief avatar Jul 01 '24 16:07 chiefchief

Hello, when do you think that landscape support will be in your pipeline? With the new European Legal Regulations on Accessibility, applications will need to support landscape by June 2025. It would be great to be able to test in landscape at least a couple of month before. Thanks

barbaramartina avatar Jul 09 '24 07:07 barbaramartina

@barbaramartina Thanks for this interesting insight. We are aware this problem is important for you; it's in our backlog.

For tracking purposes: there's a related issue #1679

bartekpacia avatar Jul 10 '24 12:07 bartekpacia

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. Thank you for helping keep us our issue tracker clean!

github-actions[bot] avatar Aug 12 '24 10:08 github-actions[bot]

re-opening as this had to be reverted in v1.37.9

bartekpacia avatar Aug 20 '24 11:08 bartekpacia

good day, any movement with this issue, really looking forward to this fix

tkhvaira avatar Aug 29 '24 04:08 tkhvaira

This is already fixed on our main branch. See PRs #1974 and #2050.

bartekpacia avatar Sep 12 '24 19:09 bartekpacia

We'll release this soon as part of Maestro version 1.39.

bartekpacia avatar Sep 12 '24 19:09 bartekpacia

Thanks. When is the version going to be released?

barbaramartina avatar Sep 12 '24 19:09 barbaramartina

Either tomorrow or next week.

bartekpacia avatar Sep 12 '24 19:09 bartekpacia

Either tomorrow or next week.

Hi Bartek, just checked your unreleased version (CLI 1.39.0-dev.1) and now the landscape works fine, but the native popups are not displaying correctly and it is also not possible to click on them with Maestro, could you please check this case ?
Screenshot 2024-09-12 at 21 34 53 Tested on simulator: Ipad Pro 11-inch (M4) This popup is called by native code but invoked from Flutter using platform channel If I try to debug it using maestro studio, I can see that the nodes for cancel and continue item exists on the screen, but they are flattened and positioned to the left and below, but still not clickable using either the studio or the yaml file.

klyovan avatar Sep 12 '24 19:09 klyovan

The currently available draft version doens't reflect the latest master. Let me relase a new one in a few minutes.

bartekpacia avatar Sep 12 '24 19:09 bartekpacia

Please check out v1.39.0-dev.2:

# before doing this, uninstall all existing maestro versions
brew update
brew install [email protected]

bartekpacia avatar Sep 12 '24 19:09 bartekpacia

The issue with native popup still there Screenshot 2024-09-13 at 08 21 20

klyovan avatar Sep 13 '24 06:09 klyovan

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. Thank you for helping keep us our issue tracker clean!

github-actions[bot] avatar Sep 20 '24 12:09 github-actions[bot]