-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[BUG] aria snapshot's regex marked as errors if the test fails #34555
Comments
Please break this down into individual cases that we can run and evaluate each scenario. Without a full, minimal repro we are unable to help. |
This is already an individual case. The issue occurs when performing a validation using an ARIA snapshot. If there is a difference between the actual and expected output, the error log also highlights regex patterns as differences, which is unexpected. You can see this behavior in the log I attached. |
It is an individual case, but it is very large, and you have not provided any of the backing DOM or the actual test contents. I need to be able to run the test and get the same output as you. Please provide a smaller ARIA snapshot so it's more readable. |
You can reproduce the issue by running the following code.
In this test, the only expected difference between the actual and expected output should be: Expected: "gradeE" To confirm that regex handling is correct, you can modify the expected value from "gradeE" to "grade", and the test will pass. This proves that the regex patterns themselves are valid and functioning correctly. |
hello, i'm using aria snapshots to validate some sections and when a check fails in the error message all the regex are shown as differences making it difficult to find identify the error.
in the example below the real error is:
and as you can see also all the regex are marked as errors.
if in this text i change the "1" to "0" the test is marked as passed
My code:
The error:
The text was updated successfully, but these errors were encountered: