qxf2-page-object-model icon indicating copy to clipboard operation
qxf2-page-object-model copied to clipboard

Fix axe accessibility test violations compare

Open mohanqxf2 opened this issue 4 months ago • 0 comments

I have updated the following to the test_accessibility.py script:

  • Changed ‘test_obj.conditional_write’ to ‘test_obj.log_result’
  • Updated the logic to fetch only violations[] section from the axe_run results, compare it with snapshot_output.json file violations[] section, and print the results if any violations are found.
  • Updated snapshot_util.py with load and save snapshot file.

To run under tests/ dir: python -m pytest test_accessibility.py

mohanqxf2 avatar Oct 21 '24 13:10 mohanqxf2