{"id":19845356,"url":"https://github.com/qavajs/playwright-runner-adapter","last_synced_at":"2026-02-07T09:05:22.734Z","repository":{"id":230877289,"uuid":"779426312","full_name":"qavajs/playwright-runner-adapter","owner":"qavajs","description":"Adapter to launch qavajs project with playwright runner","archived":false,"fork":false,"pushed_at":"2026-02-06T21:30:09.000Z","size":273,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-07T00:46:50.340Z","etag":null,"topics":["qa","test-automation","testing"],"latest_commit_sha":null,"homepage":"https://qavajs.github.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qavajs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-29T20:14:31.000Z","updated_at":"2026-02-05T17:37:17.000Z","dependencies_parsed_at":"2024-12-17T15:40:28.221Z","dependency_job_id":"e9c72743-5395-4a3a-a659-1acb01de64c3","html_url":"https://github.com/qavajs/playwright-runner-adapter","commit_stats":null,"previous_names":["qavajs/playwright-runner-adapter"],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/qavajs/playwright-runner-adapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qavajs%2Fplaywright-runner-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qavajs%2Fplaywright-runner-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qavajs%2Fplaywright-runner-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qavajs%2Fplaywright-runner-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qavajs","download_url":"https://codeload.github.com/qavajs/playwright-runner-adapter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qavajs%2Fplaywright-runner-adapter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29190842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["qa","test-automation","testing"],"created_at":"2024-11-12T13:07:23.661Z","updated_at":"2026-02-07T09:05:22.729Z","avatar_url":"https://github.com/qavajs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/@qavajs%2Fplaywright-runner-adapter.svg)](https://badge.fury.io/js/@qavajs%2Fplaywright-runner-adapter)\n\n# @qavajs/playwright-runner-adapter\nAdapter to run cucumber tests via playwright test runner\n\n## Installation\n\n```\nnpm install @qavajs/playwright-runner-adapter\n```\n\n## Basic Configuration\n\n### Create cucumber config file\nSet `paths` and `require` properties\n```typescript\n// cucumber.config.ts\nimport { defineConfig } from '@qavajs/playwright-runner-adapter';\n\nexport default defineConfig({\n    paths: ['test/features/*.feature'],\n    require: ['test/step_definitions/*.ts']\n})\n```\n### Set testMatch property\nSet `testMatch` to adapter\n```typescript\nimport { defineConfig } from '@playwright/test';\n\nexport default defineConfig({\n    testMatch: 'cucumber.config.ts'\n});\n```\n\n## Advanced Configuration\n### Customizing test instance\nCustom test instance can be passed to world constructor as `test` property. \nAnd then fixtures can be connected with world instance via `init` function-property.\n```typescript\nimport { test as base, expect as baseExpect } from '@playwright/test';\nimport { SettingsPage } from './settings-page';\nimport { setWorldConstructor, PlaywrightWorld } from '@qavajs/playwright-runner-adapter';\n\ntype MyFixtures = {\n    settingsPage: SettingsPage;\n};\n\nconst customTest = base.extend\u003cMyFixtures\u003e({\n    settingsPage: async ({ page }, use) =\u003e {\n        await use(new SettingsPage(page));\n    },\n});\n\nconst customExpect = baseExpect.extend({\n    async customMatcher() {\n        // implementation\n    }\n});\n\nclass ExtendedPlaywrightWorld extends PlaywrightWorld {\n    settingsPage: SettingsPage;\n    constructor(options: any) {\n        super(options);\n    }\n    \n    // set test property with extened one\n    test = customTest;\n    expect = customExpect;\n    \n    // init arrow function connects fixtures with Cucumber world instance\n    init = ({ settingsPage }) =\u003e {\n        this.settingsPage = settingsPage;\n    }\n\n}\n```\n\n### Tag expression and filter\nIt is possible to use regular tag expressions via `tags` util function\n\n```typescript\nimport { tags } from '@qavajs/playwright-runner-adapter';\nexport default defineConfig({\n    grep: tags('@oneTag and @anotherTag')\n});\n```\n\nor filter tests by predicate\n\n```typescript\nimport { filter } from '@qavajs/playwright-runner-adapter';\nexport default defineConfig({\n    grep: filter(name =\u003e name.includes('login test'))\n});\n```\n\n## Limitation\n- ES modules are not supported (at least for node \u003c= 22, where experimental ESM require is introduced)\n- `setParallelCanAssign` is not supported (use playwright projects and `fullyParallel` property)\n- `CUCUMBER_PARALLEL`, `CUCUMBER_TOTAL_WORKERS` and `CUCUMBER_WORKER_ID` env vars are not supported. Use built-in `info()` method of world property `test`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqavajs%2Fplaywright-runner-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqavajs%2Fplaywright-runner-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqavajs%2Fplaywright-runner-adapter/lists"}