Skip to content

amarnath-wow/playwright

Repository files navigation

Setup:

  1. New installation
  • npm init playwright
  1. Ensure the below are available
  • npm install playwright
  • npm install @axe-core/playwright
  • npx playwright install chromium

Execute:

  • npx playwright test
    note: To run only chormium, update the playwright.config.js

Support:

Accessibility:

  1. Automation framework - Playwright accessibility https://playwright.dev/docs/accessibility-testing
  2. rely package - axe-core https://www.npmjs.com/package/@axe-core/playwright
  3. For the test we are using the website (https://commitquality.com/practice-api)
  4. Start using virtual environment
  1. Use Playwright storageState for Auth (https://playwright.dev/docs/auth)
  2. accessibility statndards (Axe-core Tags : https://www.deque.com/axe/core-documentation/api-documentation/)
  3. rule description (https://github.com/dequelabs/axe-core/blob/master/doc/rule-descriptions.md)
  4. Setting the screenshot and video recording of the test - update the playwright config with the below tags
    video: "retain-on-failure",
    screenshot: "only-on-failure",

Disclaimer

Automated accessibility tests can detect some common accessibility problems such as missing or invalid properties. But many accessibility problems can only be discovered through manual testing. We recommend using a combination of automated testing, manual accessibility assessments, and inclusive user testing. For manual assessments, we recommend Accessibility Insights for Web (https://accessibilityinsights.io/docs/web/overview/?referrer=playwright-accessibility-testing-js), a free and open source dev tool that walks you through assessing a website for WCAG 2.1 AA coverage (https://www.w3.org/WAI/WCAG22/quickref/?versions=2.1).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published