Skip to content

chore: Add Playwright tests scaffolding and initial tests#551

Open
lsr-explore wants to merge 4 commits into
mainfrom
lsr-explore/chore/add-playwright-test
Open

chore: Add Playwright tests scaffolding and initial tests#551
lsr-explore wants to merge 4 commits into
mainfrom
lsr-explore/chore/add-playwright-test

Conversation

@lsr-explore

@lsr-explore lsr-explore commented May 2, 2026

Copy link
Copy Markdown
Contributor

Fixes

Add Playwright test scaffolding and initial tests

Tests help prevent regressions and can identify accessibility issues.

What is in this PR

Note

If the team decides to proceed with this change, the Playwright docs should be reviewed for what should be included in the playwright config file.


How to run playwright

run without the us

npm run test:e2e
playwright test report showing 5 tests run and one test failed

run with the ui

npm run test:e2e:ui
playwright test runner ui showing 5 tests run and one test failed and the output from the failed test

References

Playwright

https://playwright.dev/
https://www.npmjs.com/package/playwright

@axe-core/playwright

https://www.npmjs.com/package/@axe-core/playwright

Astro docs - Testing

https://docs.astro.build/en/guides/testing/

@netlify

netlify Bot commented May 2, 2026

Copy link
Copy Markdown

Deploy Preview for accessiblecommunity ready!

Name Link
🔨 Latest commit 582ef65
🔍 Latest deploy log https://app.netlify.com/projects/accessiblecommunity/deploys/6a3db854b268b30008c09fb1
😎 Deploy Preview https://deploy-preview-551--accessiblecommunity.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@lsr-explore lsr-explore force-pushed the lsr-explore/chore/add-playwright-test branch from 721ff01 to cf0e3df Compare May 6, 2026 17:15
@lsr-explore lsr-explore linked an issue May 10, 2026 that may be closed by this pull request
@brian-montgomery

Copy link
Copy Markdown
Contributor

@lsr-explore : Were you running these inside of our Docker container? When I try to install playwright, I get the following error:

Playwright Host validation warning: 
╔══════════════════════════════════════════════════════╗
║ Host system is missing dependencies to run browsers. ║
║ Missing libraries:                                   ║
║     libglib-2.0.so.0                                 ║
║     libgobject-2.0.so.0                              ║
║     libnspr4.so                                      ║
║     libnss3.so                                       ║
║     libnssutil3.so                                   ║
║     libsmime3.so                                     ║
║     libgio-2.0.so.0                                  ║
║     libatk-1.0.so.0                                  ║
║     libatk-bridge-2.0.so.0                           ║
║     libdbus-1.so.3                                   ║
║     libcups.so.2                                     ║
║     libexpat.so.1                                    ║
║     libxcb.so.1                                      ║
║     libxkbcommon.so.0                                ║
║     libasound.so.2                                   ║
║     libgbm.so.1                                      ║
║     libX11.so.6                                      ║
║     libXext.so.6                                     ║
║     libcairo.so.2                                    ║
║     libpango-1.0.so.0                                ║
║     libXcomposite.so.1                               ║
║     libXdamage.so.1                                  ║
║     libXfixes.so.3                                   ║
║     libXrandr.so.2                                   ║
║     libatspi.so.0                                    ║
╚══════════════════════════════════════════════════════╝
    at validateDependenciesLinux (/website/astro/node_modules/playwright-core/lib/coreBundle.js:27624:9)
    at async Registry._validateHostRequirements (/website/astro/node_modules/playwright-core/lib/coreBundle.js:29051:18)
    at async Registry._validateHostRequirementsForExecutableIfNeeded (/website/astro/node_modules/playwright-core/lib/coreBundle.js:29173:11)
    at async Registry.validateHostRequirementsForExecutablesIfNeeded (/website/astro/node_modules/playwright-core/lib/coreBundle.js:29162:11)
    at async installBrowsers (/website/astro/node_modules/playwright-core/lib/coreBundle.js:67954:5)
    at async _Command.<anonymous> (/website/astro/node_modules/playwright-core/lib/coreBundle.js:69577:7)

There is a playwright docker container, but it doesn't seem like you used that?

@lsr-explore lsr-explore marked this pull request as ready for review June 26, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add playwright and playwright axe

2 participants