GSA-TTS / usagov-benefits-eligibility

Benefits eligibility estimator tool for USAGov.
22 stars 5 forks source link

Add e2e tests to validate benefits list to display correctly based on selected criteria #950

Closed nehemiah-abuga closed 1 year ago

nehemiah-abuga commented 1 year ago

PR Summary

Add e2e tests to validate benefits list to display correctly based on the criteria / filtered / options selected on the left. Updated config.js to support custom commands. Moved tests to spec file names that reflect the pages in which the tests are run i.e., moved “print-selections” and “sort-benefits-list “tests to death-of-a-loved-one spec file because the tests are running on DOLO page. Also tests in “ui-render-content” spec have been moved to spec file names that reflect the pages in which the tests are being executed. Tests that were only validating content were enhanced to include validating benefits list to display correctly based on the criteria.

Related Github Issue

Type of change

Detailed Testing steps

Note. There is one failure in disability due to this defect https://github.com/GSA/usagov-benefits-eligibility/issues/949

Here is the test summary https://github.com/GSA/usagov-benefits-eligibility/actions/runs/5670225117

github-actions[bot] commented 1 year ago
Pa11y testing results ``` > usagov-benefits-eligibility@1.3.2 test:pa11y > pa11y http://localhost:3000/ Welcome to Pa11y > Running Pa11y on URL http://localhost:3000/ No issues found! ```