{"id":25651120,"url":"https://github.com/dapplets/dapplet-playwright","last_synced_at":"2026-06-10T21:31:31.253Z","repository":{"id":188501781,"uuid":"678885579","full_name":"dapplets/dapplet-playwright","owner":"dapplets","description":"Playwright fixtures to test dapplets","archived":false,"fork":false,"pushed_at":"2023-10-19T18:24:19.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T07:25:14.314Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dapplets.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}},"created_at":"2023-08-15T15:58:42.000Z","updated_at":"2023-08-15T16:49:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"90ad2a26-f3c9-4d17-af07-ee53fabef462","html_url":"https://github.com/dapplets/dapplet-playwright","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"92ff759a0979590c3972a3b4c6aaa43017f3a407"},"previous_names":["dapplets/dapplet-playwright"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dapplets/dapplet-playwright","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapplets%2Fdapplet-playwright","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapplets%2Fdapplet-playwright/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapplets%2Fdapplet-playwright/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapplets%2Fdapplet-playwright/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dapplets","download_url":"https://codeload.github.com/dapplets/dapplet-playwright/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapplets%2Fdapplet-playwright/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34172196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-02-23T16:17:48.013Z","updated_at":"2026-06-10T21:31:31.234Z","avatar_url":"https://github.com/dapplets.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @dapplets/dapplet-playwright Library\n\nThe `@dapplets/dapplet-playwright` library is a collection of fixtures designed for testing dapplets within the Dapplet Extension environment. It automates the process of downloading the specified version of the extension and provides utilities for testing.\n\n## Installation\n\nYou can install the library using npm:\n\n```bash\nnpm i -D @dapplets/dapplet-playwright\n```\n\n## Configuration\n\nTo use the `@dapplets/dapplet-playwright` library, you need to configure the `playwright.config.ts` file in your project. This file specifies various settings for testing, including browser configuration and extension version. An example configuration for Chromium is as follows:\n\n```typescript\nimport { defineConfig } from 'playwright';\nimport { devices } from 'playwright-chromium';\nimport { BrowserOptions } from \"@dapplets/dapplet-playwright\";\n  \nexport default defineConfig\u003cBrowserOptions\u003e({\n  projects: [\n    {\n      name: \"chromium\",\n      use: {\n        ...devices[\"Desktop Chrome\"],\n        newHeadless: process.env.CI ? true : false,\n        extensionVersion: \"v0.60.0-alpha.2\",\n      },\n    }\n  ],\n});\n```\n\nAdjust the configuration according to your requirements, including the browser you want to use and the extension version you want to test with.\n\n## Usage\n\nHere's an example of how you can use the `@dapplets/dapplet-playwright` library to test your dapplet:\n\n```typescript\nimport { expect, test } from \"@dapplets/dapplet-playwright\";\n\ntest(\"should inject widget\", async ({\n  page,\n  enableDevServer,\n  activateDapplet,\n}) =\u003e {\n  await page.goto('https://example.com');\n\n  await enableDevServer(\"http://localhost:3001/dapplet.json\");\n  await activateDapplet(\"your-dapplet-id\", \"http://localhost:3001/dapplet.json\");\n\n  await expect(page.locator('.dapplet-widget')).toBeVisible();\n});\n```\n\nIn this example, the `expect`, `test`, `enableDevServer`, and `activateDapplet` functions are provided by the library, making it easy to write tests for your dapplets.\n\n## Contributing\n\nContributions to the `@dapplets/dapplet-playwright` library are welcome! If you find any issues or have improvements to suggest, please open an issue or submit a pull request on the [GitHub repository](https://github.com/dapplets/dapplet-playwright).\n\n## License\n\nThis project is licensed under the [MIT License](https://github.com/dapplets/dapplet-playwright/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapplets%2Fdapplet-playwright","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdapplets%2Fdapplet-playwright","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapplets%2Fdapplet-playwright/lists"}