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

[v.1.36.0] () characters treated as regex even within string #1763

Open
bullPaul opened this issue Jun 6, 2024 · 0 comments
Open

[v.1.36.0] () characters treated as regex even within string #1763

bullPaul opened this issue Jun 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bullPaul
Copy link

bullPaul commented Jun 6, 2024

Describe the bug
Inside containsDescendants the text is treated completely like a regular expression despite the string and cannot use parentheses.

- assertVisible:
    id: 'FacilityNameAZ_Contents'
    containsDescendants:
      - text: 'Facility name \(A-Z\)'
      - id: 'Radio'

This was mentioned in Slack as well.

To Reproduce

  1. Start the simulator
  2. Run maestro test ...
  3. Test fails on this line just because of the containsDescendants' text

Expected behavior
Treats the string like a string instead of a regexp or ability to escape those characters as expected like 'Facility name \(A-Z\)' instead of having to do Facility name .*

Screenshots
N/A

Environment information (please complete the following information):
Maestro version [v.1.36.0]
Platform: [iOS 17.0.0+]
Framework: [React Native with Expo]
Device model and OS version: [iPhone 14+]
Simulator
Host [Mac]

Workspace (if applicable)
N/A

Bugreport output (if applicable)
N/A

Additional context
N/A

@bullPaul bullPaul added the bug Something isn't working label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant