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
The feature/lighthouse-ci branch is being used to develop a CI workflow that will run Lighthouse accessibility audits on the pages that the public are most likely to interact with. The pages that we have currently identified as priority are:
home page
open participation page
closed participation page
report page (summarizing polis conversation)
signin page
When a change is pushed to the repo (on the feature/lighthouse-ci branch for now), Github Actions will, based on the workflow file, build the Polis server from the pushed code, and run lighthouseAudit.mjs. lighthouseAudit.mjs will interact with the running server to generate a conversation, run Lighthouse audits on the pages, and upload failed audits to the access issues log.
Currently the feature only is built for the home and open participation pages. Moving forwad, we need to add in support for:
open participation page with visualization enabled for participants
closed participation page
report page
sign-in page.
Suggestion moving forward
Open participation page with visualization enabled
To enable visualization for participants a PUT request has to be sent to /api/v3/conversations. Open the page to visually confirm that visualization has been enabled (might need to generate a minimum number of comments and votes before a visualization can be generated)
Closed participation page
To close a conversation, a PUT request has to be sent to /api/v3/conversations The participation page should be closed. Run lighthouse again on this page (localhost/${conversationId})
Report page
To generate a report, a GET request has to be sent to api/v3/reports?conversation_id=${conversationId} A report url should be returned. Save this url and run lighthouse on this page (localhost/report/${reportId}).
Signing page
The signin page can be accessed at localhost/signin
Current state
The feature/lighthouse-ci branch is being used to develop a CI workflow that will run Lighthouse accessibility audits on the pages that the public are most likely to interact with. The pages that we have currently identified as priority are:
When a change is pushed to the repo (on the feature/lighthouse-ci branch for now), Github Actions will, based on the workflow file, build the Polis server from the pushed code, and run lighthouseAudit.mjs. lighthouseAudit.mjs will interact with the running server to generate a conversation, run Lighthouse audits on the pages, and upload failed audits to the access issues log.
Currently the feature only is built for the home and open participation pages. Moving forwad, we need to add in support for:
Suggestion moving forward
Open participation page with visualization enabled
To enable visualization for participants a PUT request has to be sent to /api/v3/conversations. Open the page to visually confirm that visualization has been enabled (might need to generate a minimum number of comments and votes before a visualization can be generated)
Closed participation page
To close a conversation, a PUT request has to be sent to /api/v3/conversations The participation page should be closed. Run lighthouse again on this page (localhost/${conversationId})
Report page
To generate a report, a GET request has to be sent to api/v3/reports?conversation_id=${conversationId} A report url should be returned. Save this url and run lighthouse on this page (localhost/report/${reportId}).
Signing page
The signin page can be accessed at localhost/signin
Additional context
Example of the closed participation page, report page, and signin page running on pol.is
The text was updated successfully, but these errors were encountered: