jest-playwright
jest-playwright copied to clipboard
Running tests using Jest & Playwright
Can't find working solution for setting up custom data-testid attribute. Tried `testIdAttributeName` inside `jest-playwright.config.js` but it looks ignored. Especially will be great if i can setup two attributes.
**Describe the bug** I'm using this package through `@storybook/test-runner`. When running the test runner, I kept getting confusing error messages about Playwright not being installed. The error is thrown [here](https://github.com/playwright-community/jest-playwright/blob/3437dae6693ede66ec70883834a0a14f9d58bb6d/src/utils.ts#L149),...
This [line](https://github.com/playwright-community/jest-playwright/blob/3437dae6693ede66ec70883834a0a14f9d58bb6d/src/PlaywrightEnvironment.ts#L119) could be changed and it'd help users of `PlaywrightEnvironment` to leverage the `context` that's passed to jest environments From ```javascript constructor(config: JestEnvironmentConfig) { super(config) this._config = config.projectConfig as...
**Is your feature request related to a problem? Please describe.** This is specifically a problem for libraries intercepting `jest-environment-*` libraries to create integrations. In this [specific line](https://github.com/playwright-community/jest-playwright/blob/3437dae6693ede66ec70883834a0a14f9d58bb6d/src/PlaywrightEnvironment.ts#L360): ```javascript async handleTestEvent(event:...
Fixes #821
Fixes #819 This is how jest recommends creating your own test environment ([jest docs](https://jestjs.io/docs/29.6/configuration#testenvironment-string)): ```javascript // my-custom-environment const NodeEnvironment = require('jest-environment-node').TestEnvironment; class CustomEnvironment extends NodeEnvironment { constructor(config, context) { super(config,...
**Is your feature request related to a problem? Please describe.** Currently, jest-playwright 4.0.0 declared jest 29 as peer dependency: https://github.com/playwright-community/jest-playwright/blob/3437dae6693ede66ec70883834a0a14f9d58bb6d/package.json#L53-L58 This generates dependency conflict errors during npm install when I...
Hello, I would like to know if it's possible to have our own custom `defineConfig` from playwright ? Playwright offers a lot of configuration by adding a custom `playwright.config.ts` file,...
**Describe the bug** Rimraf versions prior to v4 are no longer supported but version 3 is being used. **To Reproduce** Steps to reproduce the behavior: - npm install @storybook/[email protected] **Expected...