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

assertVisible with the enabled: false fails on Android #2267

Open
1 task done
morganick opened this issue Jan 23, 2025 · 1 comment
Open
1 task done

assertVisible with the enabled: false fails on Android #2267

morganick opened this issue Jan 23, 2025 · 1 comment

Comments

@morganick
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

On Android, assertVisible with enabled: false fails to find a visible disabled button. It works as expected on iOS. I've created a repo that is a npx expo-create-app@latest application:

  1. Clone https://github.com/morganick/maestrodisabledbug
  2. Follow the README to reproduce

Actual results

On Android, the maestro/disabledButton.yaml flow fails. On iOS, it passes.

Expected results

Expect the flow to pass on both platforms.

About app

Here's an open source repro app: https://github.com/morganick/maestrodisabledbug

About environment

System
platform darwin
arch arm64
cpu 16 cores Apple M4 Max
directory MaestroDisabledBug

JavaScript (and globally-installed packages)
node 21.6.2
npm 10.2.4
corepack 0.24.0
eas-cli 14.4.1
npm 10.2.4
yarn 1.22.22
pnpm 9.15.4
bun - not installed
expo 52.0.27 managed

Ignite
ignite-cli 10.1.4
ignite src build

Android
java 17.0.13

iOS
xcode 16.2
cocoapods 1.16.2

Tools
git git version 2.48.1 /opt/homebrew/bin/git

Logs

Logs
Running on emulator-5554

 ║
 ║  > Flow: disabledButton
 ║
 ║    ✅   Launch app "com.maestrodisabled.bug"
 ║    ✅   Assert that "Enabled Button" is visible
 ║    ❌   Assert that "Disabled Button" is visible
 ║    🔲   Assert that "Enabled Button" is not visible
 ║    🔲   Assert that "Disabled Button" is not visible
 ║

Assertion is false: "Disabled Button" is visible

Maestro version

1.39.9

How did you install Maestro?

Homebrew

Anything else?

No response

Copy link

linear bot commented Jan 23, 2025

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

No branches or pull requests

1 participant