Issue: #1545
This PR adds Playwright end-to-end (E2E) testing for the Browse Bills page, including:
Finding bills via text search
Sorting bills by various criteria
Filtering bills based on different attributes
My Playwright version 1.43.1 and yarn version is 1.22.19
Checklist
Playwright test covering the Browse Bills page, including:
Able to find Bills via Text Search - finished
Able to sort Bills as expected - finished
Able to filter Bills as expected- finished
Known issues
1.The sorting function for "sort by relevance" is not implemented as I do not have access to the relevance score needed to test this functionality.
2.Only a couple of pages were tested due to time constraints, as testing every page would take too long.
3.For the filtering function, the tests mostly focus on ensuring that the labels are showing correctly. The content itself wasn't thoroughly checked since this would require looking into the bill page in detail, which is extremely time-consuming.
Steps to test/reproduce
To run the e2e tests with the Playwright UI, run yarn test:e2e.
Summary
Issue: #1545 This PR adds Playwright end-to-end (E2E) testing for the Browse Bills page, including:
Finding bills via text search Sorting bills by various criteria Filtering bills based on different attributes
My Playwright version 1.43.1 and yarn version is 1.22.19
Checklist
Playwright test covering the Browse Bills page, including: Able to find Bills via Text Search - finished Able to sort Bills as expected - finished Able to filter Bills as expected- finished
Known issues
1.The sorting function for "sort by relevance" is not implemented as I do not have access to the relevance score needed to test this functionality. 2.Only a couple of pages were tested due to time constraints, as testing every page would take too long. 3.For the filtering function, the tests mostly focus on ensuring that the labels are showing correctly. The content itself wasn't thoroughly checked since this would require looking into the bill page in detail, which is extremely time-consuming.
Steps to test/reproduce
To run the e2e tests with the Playwright UI, run yarn test:e2e.