codeforboston / maple

MAPLE makes it easy for anyone to view and submit testimony to the Massachusetts Legislature about the bills that will shape our future.
https://mapletestimony.org
MIT License
44 stars 118 forks source link

1545 browse bill page e2e test #1597

Closed HuanFengYeh closed 2 months ago

HuanFengYeh commented 2 months ago

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.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
maple-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 1:59pm