{"id":15102689,"url":"https://github.com/adnanmc/playwright-multi-project-example","last_synced_at":"2026-02-23T02:37:53.703Z","repository":{"id":248256992,"uuid":"828206323","full_name":"adnanmc/playwright-multi-project-example","owner":"adnanmc","description":"Example setup standalone repo containing test for multiple projects","archived":false,"fork":false,"pushed_at":"2025-01-30T06:59:29.000Z","size":5975,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T11:42:12.177Z","etag":null,"topics":["playwright","playwright-multi-project","playwright-setup","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adnanmc.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-13T12:38:11.000Z","updated_at":"2025-01-30T06:59:33.000Z","dependencies_parsed_at":"2024-10-31T03:35:16.547Z","dependency_job_id":null,"html_url":"https://github.com/adnanmc/playwright-multi-project-example","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"1cfe4a65a0d7efb91dedede6f50bccd6e26e754c"},"previous_names":["adnanmc/playwright-multi-project-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adnanmc/playwright-multi-project-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnanmc%2Fplaywright-multi-project-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnanmc%2Fplaywright-multi-project-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnanmc%2Fplaywright-multi-project-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnanmc%2Fplaywright-multi-project-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adnanmc","download_url":"https://codeload.github.com/adnanmc/playwright-multi-project-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnanmc%2Fplaywright-multi-project-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29735759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T02:24:00.660Z","status":"ssl_error","status_checked_at":"2026-02-23T02:22:56.087Z","response_time":90,"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":["playwright","playwright-multi-project","playwright-setup","playwright-typescript"],"created_at":"2024-09-25T19:04:38.428Z","updated_at":"2026-02-23T02:37:53.682Z","avatar_url":"https://github.com/adnanmc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playwright Multi Project Test Example\n\nThis repo is an example setup to house test for multiple project by defining them in `playwright.config.ts` file like below:\n\n```typescript\nprojects: [\n{\nname:  'project1-smoke',\ntestDir:  './tests/project1/smoke',\nuse: { ...devices['Desktop Chrome'] },\n},\n]\n```\n\n## Folders and files\n\nUnder `tests/` folder there are 2 projects, `projects1/` and `project2/`. Each project has its `pom/` folder to house all the page object model definitions. There are addition sub folders such as `smoke/` `regression/` to group test for easiness.\n\n`sample.env` can be renamed to `.env` to avoid git commit. For safety rename and use it to store sensitive information such as email, password, auth token, url etc.\n\nInside `playwright.config.ts` logic exist to load `.env` by default. You can tweak the logic there to manage multiple `.env` files based on different environments such as QA, DEV, STG, PROD etc.\n\n## NPM Command\n\nbelow `npm` command added in `package.json` file for easiness. Note: `npm run all` will run all the tests for all projects in the `tests/` folder. Run `npm run report` to display report with tracing. Tracing have been turned on inside `playwright.config.ts`. You can refer to playwright docs for more option:  https://playwright.dev/docs/api/class-testoptions#test-options-trace\n\n`npm run ui-browser` command will allow you to access the ui mode from browser on localhost:8080\n\n ```json\n \"scripts\": {\n\"ui\": \"playwright test --ui\",\n\"ui-browser\": \"playwright test --ui-port=8080 --ui-host=0.0.0.0\",\n\"p1s\": \"playwright test --project=project1-smoke\",\n\"p2s\": \"playwright test --project=project2-smoke\",\n\"all\": \"playwright test\",\n\"report\": \"playwright show-report\"\n},\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnanmc%2Fplaywright-multi-project-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadnanmc%2Fplaywright-multi-project-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnanmc%2Fplaywright-multi-project-example/lists"}