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

Make "assertVisible" find part of a text #66

Closed
K0n2t1 opened this issue Jul 18, 2024 · 2 comments
Closed

Make "assertVisible" find part of a text #66

K0n2t1 opened this issue Jul 18, 2024 · 2 comments

Comments

@K0n2t1
Copy link

K0n2t1 commented Jul 18, 2024

In my React Native application the test should open an article and check it's content being visible afterwards. I can't make it work yet, since it seems to only succeed when the string of assertVisible is the complete content of a screen element. I am not able to provide the whole article text in the yaml file. Also pasting the whole article in the test yaml makes it unreadable and
the content can contain text styling, line breaks and more.

My understanding of something being visible is fullfilled, if it is visible as part of a bigger text:

  • assertVisible: "World"
    This should be true if an element containing "Hello World!" is visible.

Would be great to make this the standard behaviour. If necessary you can possibly add an option to use the current behaviour.

Best regards.

@Fishbowler
Copy link
Contributor

Is this one for the maestro repo? I don't see a documentation specific problem here.

@bartekpacia
Copy link
Contributor

Yeah, please report this to https://github.com/mobile-dev-inc/maestro/

@bartekpacia bartekpacia closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2024
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

3 participants