{"id":22400109,"url":"https://github.com/currents-dev/currents-playwright-bdd-cucumber-example","last_synced_at":"2025-03-27T00:17:27.802Z","repository":{"id":219010244,"uuid":"747933280","full_name":"currents-dev/currents-playwright-bdd-cucumber-example","owner":"currents-dev","description":"This repository showcases running Playwright + Currents + playwright-bdd to run BDD tests, while using Currents as the reporting dashboard.","archived":false,"fork":false,"pushed_at":"2024-01-24T23:29:48.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T04:52:20.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/currents-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-24T23:27:46.000Z","updated_at":"2024-01-24T23:28:26.000Z","dependencies_parsed_at":"2024-01-25T00:49:13.338Z","dependency_job_id":null,"html_url":"https://github.com/currents-dev/currents-playwright-bdd-cucumber-example","commit_stats":null,"previous_names":["currents-dev/currents-playwright-bdd-cucumber-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fcurrents-playwright-bdd-cucumber-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fcurrents-playwright-bdd-cucumber-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fcurrents-playwright-bdd-cucumber-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fcurrents-playwright-bdd-cucumber-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/currents-dev","download_url":"https://codeload.github.com/currents-dev/currents-playwright-bdd-cucumber-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245755683,"owners_count":20667027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-05T08:11:24.856Z","updated_at":"2025-03-27T00:17:27.784Z","avatar_url":"https://github.com/currents-dev.png","language":"TypeScript","readme":"# Playwright + Currents + playwright-bdd (Cucumber)\n\nThis repository showcases running [Playwright](https://playwright.dev) + [Currents](https://currents.dev) + [playwright-bdd](https://github.com/vitalets/playwright-bdd) to run BDD tests, while using [Currents](https://currents.dev) as the reporting dashboard.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"830\" src=\"https://static.currents.dev/currents-playwright-banner-gh.png\" /\u003e\n\u003c/p\u003e\n\n## Why?\n\n`cucumber-js` is a mature and popular test runner, however, it is different from the native Playwright test runner - those are not compatible. To utilize the native Playwright test runner with BDD it is suggested to use [playwright-bdd](https://github.com/vitalets/playwright-bdd).\n\nRead more at: https://www.cy2pw.com/cucumber.\n\n## Documentation\n\nThe repo contains a few BDD tests with one test that always fails (intentionally):\n\n- [features/homepage.feature](features/homepage.feature) - has intentionally failing test\n- [features/todopage.feature](features/todopage.feature)\n\nTo reproduce the setup:\n\n- Create an organization, get your **Record Key** and **Project Id** at https://app.currents.dev\n\n- Clone repo\n- Install dependencies\n\n  ```sh\n  npm install\n  ```\n\n- Install browsers\n\n  ```sh\n  npx playwright install\n  ```\n\n- Set **Record Key** and **Project Id** in `playwright.config.ts`\n\n- Run tests\n\n  ```sh\n  npm test\n  ```\n\n  Output:\n\n  ```plain\n   ===============================================\n   Uploading results to Currents.dev...\n   Cloud Run Finished: https://app.currents.dev/run/1f2e431c6d46675e\n   ================================================\n  ```\n\nAdditional resources:\n\n- Playwright Features on Currents: https://currents.dev/playwright\n- Integration Documentation: https://currents.dev/readme/integration-with-playwright/currents-playwright\n- CI Build ID Guide: https://currents.dev/readme/guides/ci-build-id\n\n## Results\n\nThe results are being reported to Currents for more efficient troubleshooting, and monitoring test suite flakiness and performance.\n\nCurrents will collect the following information:\n\n- console output\n- screenshots\n- videos\n- trace files\n- timing\n- outcomes\n- flaky tests\n- error details\n- tags for more convenient management of the tests:\n\n![currents-2024-01-24-15 26 34@2x](https://github.com/currents-dev/currents-playwright-bdd-cucumber-example/assets/1637928/44e38f3c-56f4-469e-884e-71a528ee4dca)\n\n![currents-2024-01-24-15 29 19@2x](https://github.com/currents-dev/currents-playwright-bdd-cucumber-example/assets/1637928/4ac06f8b-ff38-4f88-8ca0-b3d147d9dd96)\n\n\n- \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurrents-dev%2Fcurrents-playwright-bdd-cucumber-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurrents-dev%2Fcurrents-playwright-bdd-cucumber-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurrents-dev%2Fcurrents-playwright-bdd-cucumber-example/lists"}