You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am printing the accessibility test errors using console.log to the console. But those console statements get mixed with the reporter's output. I don't want to use assertions for accessibility checks.
Expected behavior
I am expecting something like
2 ✓ handle long test names (515ms)
3 x 1) render expected (691ms)
4 ✓ should timeout (932ms)
5 should repeat each:
6 ✓ should respect enclosing .gitignore (569ms)
Actual behavior
But it's like
Target #6:
Failure Summary: Fix any of the following:
✓ 18 [chromium] › ✓ handle long test names (515ms)
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
HTML:
Target #7:
Failure Summary: Fix any of the following:
Element does not have text that is visible to screen readers
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
HTML:
✓ 19 should timeout (932ms)
x 17 x 1) render expected (691ms)
Failure Summary: Fix any of the following:
Element does not have text that is visible to screen readers
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
HTML:
Additional context
Is there a way, I can create some global variables and store all the accessibility check info there and print when all the tests are executed..
Version
1.49.0
Steps to reproduce
I am printing the accessibility test errors using console.log to the console. But those console statements get mixed with the reporter's output. I don't want to use assertions for accessibility checks.
Expected behavior
I am expecting something like
2 ✓ handle long test names (515ms)
3 x 1) render expected (691ms)
4 ✓ should timeout (932ms)
5 should repeat each:
6 ✓ should respect enclosing .gitignore (569ms)
Actual behavior
But it's like
Target #6:
Failure Summary: Fix any of the following:
✓ 18 [chromium] › ✓ handle long test names (515ms)
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
HTML:
Target #7:
Failure Summary: Fix any of the following:
Element does not have text that is visible to screen readers
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
HTML:
✓ 19 should timeout (932ms)
x 17 x 1) render expected (691ms)
Failure Summary: Fix any of the following:
Element does not have text that is visible to screen readers
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
HTML:
Additional context
Is there a way, I can create some global variables and store all the accessibility check info there and print when all the tests are executed..
Environment
Dcoker System: OS: Linux 6.6 Debian GNU/Linux 12 (bookworm) 12 (bookworm) CPU: (4) arm64 unknown Memory: 10.50 GB / 13.39 GB Container: Yes Binaries: Node: 20.18.1 - /usr/local/bin/node Yarn: 4.5.1 - /usr/local/bin/yarn npm: 10.8.2 - /usr/local/bin/npm Languages: Bash: 5.2.15 - /usr/bin/bash npmPackages: @playwright/test: ^1.49.0 => 1.49.0
The text was updated successfully, but these errors were encountered: