{"id":44742406,"url":"https://github.com/andreasneuber/playwright-cucumber-ts-example","last_synced_at":"2026-02-15T21:12:27.049Z","repository":{"id":183059832,"uuid":"604739879","full_name":"andreasneuber/playwright-cucumber-ts-example","owner":"andreasneuber","description":"Sample implementation with Playwright and Cucumber, written in TS. With Dockerfile.","archived":false,"fork":false,"pushed_at":"2026-02-07T10:29:43.000Z","size":327,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-07T18:53:49.643Z","etag":null,"topics":["cucumber","playwright","typescript"],"latest_commit_sha":null,"homepage":"","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/andreasneuber.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2023-02-21T17:32:34.000Z","updated_at":"2026-02-07T10:24:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd098e85-99d1-4e79-bce6-35969bfb1d26","html_url":"https://github.com/andreasneuber/playwright-cucumber-ts-example","commit_stats":null,"previous_names":["andreasneuber/playwright-cucumber-framework","andreasneuber/playwright-cucumber-js-example","andreasneuber/playwright-cucumber-ts-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andreasneuber/playwright-cucumber-ts-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasneuber%2Fplaywright-cucumber-ts-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasneuber%2Fplaywright-cucumber-ts-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasneuber%2Fplaywright-cucumber-ts-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasneuber%2Fplaywright-cucumber-ts-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreasneuber","download_url":"https://codeload.github.com/andreasneuber/playwright-cucumber-ts-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasneuber%2Fplaywright-cucumber-ts-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29489626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cucumber","playwright","typescript"],"created_at":"2026-02-15T21:12:26.145Z","updated_at":"2026-02-15T21:12:27.042Z","avatar_url":"https://github.com/andreasneuber.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# playwright-cucumber-ts-example\nSample implementation with Playwright and Cucumber\n\n## Application under test\nThe feature files, step definitions and page objects were written for https://github.com/andreasneuber/automatic-test-sample-site.\nReadme in this repo has further details how to set it up.\n\n## Install\n`npm install`\n\n## Run\nTo run all tests with much output on terminal: `npm run test:normal`\n\nTo run all tests with minimum output on terminal and adding results into a json file for a report: `npm run test:all`\n\nor\n\n`npm run test:e2e acceptance/features/ConvertCelsius.feature`\n\nor \n\n`npm run test:e2e acceptance/features/AdminPrivileges.feature`\n\nor \n\n`npm run test:e2e acceptance/features/Creditcard.feature`\n\nor\n\n`npm run test:e2e acceptance/features/Login.feature`\n\nor\n\n`npm run test:e2e acceptance/features/ProvideYourDetails.feature`\n\nor\n\n`npm run test:e2e acceptance/features/ConcurrentWindows.feature`\n\n## Reporting\n- Run tests\n- Then generate HTML report: `npm run report`\n- Open the generated HTML report in browser located here: `reports/cucumber_report.html`\n\n## Docker\nBuild the container: `docker build --no-cache -t playwright-cucumber-js-docker .`\n\nThen run it: `docker run --rm --net=\"host\" -it playwright-cucumber-js-docker:latest npm run test:normal`\n\n`--net=host` is needed because the application under test is running on `http://localhost:8000`\n\n## Docker Compose with \"Application under Test\"\nBuild container with the sample application https://github.com/andreasneuber/automatic-test-sample-site:     \n`docker build --no-cache -t sample-site .`\n\nBuild the container with tests here: `docker build --no-cache -t playwright-cucumber-js-docker .`\n\nThen: `docker compose up`\n\nAll tests will be executed and the `cucumber_report.html` report will be copied to root directory.\n\n## FAQ\n### What is the test runner in this project?\nIts Cucumber (see also file `package.json` \u003e scripts).  \nCucumber parses first the feature files, finds the needed step definitions, step definitions use Playwright.  \nThis means the config file for settings like speed, heeadless/headed and more is `cucumber.config.js`\n\n### How can I make tests run faster?\nIn file `cucumber.conf.js` find line with `slowMo` and reduce the value.\n\n### How do I make the browser window visible?\nIn file `cucumber.conf.js` find line with `headless: true` and set value to \"false\".\n\n### How do I update the browsers which come along with Playwright?\n`npx playwright install`\n\n### What is the test runner?\nCucumber-JS. See the \"scripts\" responsible for executing tests in `package.json`.\nCucumber parses the feature files, and then in the step definitions underlying Playwright functionality is called.\nGood to keep in mind when going through Playwright documentation - for example with https://playwright.dev/docs/videos, \nthe fitting code is always under tab \"Library\" not \"Test\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasneuber%2Fplaywright-cucumber-ts-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreasneuber%2Fplaywright-cucumber-ts-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasneuber%2Fplaywright-cucumber-ts-example/lists"}