Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@guidepup/playwright
Advanced tools
Screen reader driver for Playwright tests.
Reliable automation for your screen reader a11y workflows in Playwright supporting:
NVDA on Windows - Coming Soon!
A11y static analysis tools only cover 25% of WCAG and don't assure on the quality of the user experience for screen reader users. This means teams need to perform lots of manual tests with multiple screen readers to ensure great UX which can take a lot of time... not anymore!
With Guidepup you can automate your screen reader test workflows the same you as would for mouse or keyboard based scenarios, no sweat!
Set up your environment for screen reader automation with @guidepup/setup
:
npx @guidepup/setup
Install @guidepup/playwright
to your project:
npm install --save-dev @guidepup/playwright @playwright/test
And get cracking with your first screen reader tests in Playwright!
import { voTest as test } from "@guidepup/playwright";
import { expect } from "@playwright/test";
test.describe("Playwright VoiceOver", () => {
test("I can navigate the Guidepup Github page", async ({
page,
voiceOver,
}) => {
// Navigate to Guidepup GitHub page
await page.goto("https://github.com/guidepup/guidepup", {
waitUntil: "domcontentloaded",
});
// Wait for page to be ready and interact
await expect(page.locator('header[role="banner"]')).toBeVisible();
await voiceOver.interact();
// Move across the page menu to the Guidepup heading using VoiceOver
while ((await voiceOver.itemText()) !== "Guidepup heading level 1") {
await voiceOver.perform(voiceOver.keyboard.commands.findNextHeading);
}
});
In your playwright.config.ts
add the following for the best results with
Guidepup for VoiceOver automation.
import { devices, PlaywrightTestConfig } from "@playwright/test";
import { voConfig } from "@guidepup/playwright";
const config: PlaywrightTestConfig = {
...voConfig,
// Your custom config ...
};
export default config;
Check out the configuration this adds in the voConfig.ts file.
Set up your environment for screen-read automation with @guidepup/setup
:
npx @guidepup/setup
If you are using GitHub Actions, check out the dedicated guidepup/setup-action
:
- name: Setup Environment
uses: guidepup/setup-action@0.8.1
Head over to the Guidepup Website for guides, real world examples, environment setup, and complete Guidepup API documentation with examples.
Check out this cross-browser VoiceOver example.
Checkout the core @guidepup/guidepup
project to learn more about how you can automate your screen reader workflows
using Guidepup.
FAQs
Screen reader driver for Playwright tests.
The npm package @guidepup/playwright receives a total of 2,498 weekly downloads. As such, @guidepup/playwright popularity was classified as popular.
We found that @guidepup/playwright demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.