Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@guidepup/playwright

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guidepup/playwright - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

3

lib/voTest.d.ts

@@ -1,2 +0,1 @@

import { VoiceOver } from "@guidepup/guidepup";
/**

@@ -9,4 +8,4 @@ * These tests extend the default Playwright environment that launches the

declare const voTest: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & {
vo: VoiceOver;
voiceOver: any;
}, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
export { voTest };

@@ -15,11 +15,10 @@ "use strict";

const voTest = test_1.test.extend({
vo: async ({}, use) => {
const vo = new guidepup_1.VoiceOver();
voiceOver: async ({}, use) => {
try {
await vo.start();
await guidepup_1.voiceOver.start();
await (0, guidepup_1.macOSActivate)(PLAYWRIGHT_APPLICATION);
await use(vo);
await use(guidepup_1.voiceOver);
}
finally {
await vo.stop();
await guidepup_1.voiceOver.stop();
}

@@ -26,0 +25,0 @@ },

{
"name": "@guidepup/playwright",
"version": "0.5.0",
"version": "0.6.0",
"description": "Screen-reader driver for Playwright.",

@@ -34,3 +34,3 @@ "main": "lib/index.js",

"dependencies": {
"@guidepup/guidepup": "^0.12.0"
"@guidepup/guidepup": "^0.13.0"
},

@@ -37,0 +37,0 @@ "devDependencies": {

@@ -31,3 +31,3 @@ <h1 align="center">Guidepup Playwright</h1>

page,
vo,
voiceOver,
}) => {

@@ -40,14 +40,14 @@ // Navigate to Playwright website 🎉

// Interact with the page 🙌
await vo.interact();
await voiceOver.interact();
// Move across the navigation menu to the search bar using VoiceOver 🔎
while (!(await vo.lastSpokenPhrase())?.startsWith("Search")) {
await vo.next();
while (!(await voiceOver.lastSpokenPhrase())?.startsWith("Search")) {
await voiceOver.next();
}
// Search for Safari 👀
await vo.type("Safari");
await vo.press("ArrowDown");
await vo.press("ArrowUp");
await Promise.all([page.waitForNavigation(), vo.act()]);
await voiceOver.type("Safari");
await voiceOver.press("ArrowDown");
await voiceOver.press("ArrowUp");
await Promise.all([page.waitForNavigation(), voiceOver.act()]);
expect(page.url()).toBe("https://playwright.dev/docs/browsers#webkit");

@@ -54,0 +54,0 @@ });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc