Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NVDA not supported #18

Closed
DeanNeal opened this issue Mar 27, 2023 · 4 comments
Closed

NVDA not supported #18

DeanNeal opened this issue Mar 27, 2023 · 4 comments

Comments

@DeanNeal
Copy link

I've faced an issue with tests launching.
npx @guidepup/setup doesn't work for me

image
It looks like something wrong with my local environment, but I can't find the reason.

@cmorten
Copy link
Contributor

cmorten commented Mar 27, 2023

@DeanNeal can you share what the OS (and version) is, and any steps taken, code used etc. and can try see if can repro

@DeanNeal
Copy link
Author

DeanNeal commented Mar 27, 2023

@cmorten
Sure!

package.json

{
  "name": "dockerada",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "jest"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@guidepup/guidepup": "0.17.1",
    "@playwright/test": "1.32.0",
    "@types/jest": "27.5.1",
    "babel-jest": "27.5.1",
    "jest": "27.5.1",
    "playwright": "1.32.0",
    "ts-jest": "27.1.5"
  },
  "jest": {
    "testEnvironment": "jsdom",
    "testPathIgnorePatterns": [
      "<rootDir>/node_modules/"
    ],
    "transform": {
      "\\.(js|jsx)$": "babel-jest",
      "\\.(ts|tsx)$": "ts-jest"
    }
  }
}

app.test.ts

import { chromium, Browser } from 'playwright';
import { nvda } from "@guidepup/guidepup";

declare const window: any;

window.setImmediate = window.setTimeout;

describe('description', () => {
    let browser: Browser;
    beforeAll(async () => {
        browser = await chromium.launch({ headless: false });
    });

    test('test', async () => {
        const page = await browser.newPage();
        await page.goto('https://playwright.dev/');
        // const text = await page.locator('.navbar__title').innerText();
        // expect(text).toEqual('Playwright');

        await nvda.start();

        await nvda.press('Tab');

        await nvda.press('Tab');

        await nvda.press('Tab');

        await nvda.press('Tab');

        await nvda.press('Tab');


        const log = await nvda.spokenPhraseLog();

        await nvda.stop();

        expect(log).toEqual('Playwright')
    }, 20000)

    afterAll(async () => {
        browser.close();
    });
})

@cmorten
Copy link
Contributor

cmorten commented May 20, 2023

Hi @DeanNeal is this issue still happening for you? Going by guidepup/guidepup#83 it sounds like it might be working locally for you, just not in a docker container?

@DeanNeal
Copy link
Author

Hi @cmorten This issue is no longer reproducible. I have only issue with docker you mentioned guidepup/guidepup#83

@cmorten cmorten closed this as completed May 20, 2023
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

No branches or pull requests

2 participants