{"id":20390454,"url":"https://github.com/checkly/checkly-playwright-helpers","last_synced_at":"2025-09-07T10:37:30.771Z","repository":{"id":259212859,"uuid":"756400601","full_name":"checkly/checkly-playwright-helpers","owner":"checkly","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-29T15:07:19.000Z","size":229,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T13:44:27.291Z","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/checkly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-02-12T15:42:09.000Z","updated_at":"2025-07-29T15:07:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"e07a7a16-23a1-451b-9d9f-7390f3e20c5b","html_url":"https://github.com/checkly/checkly-playwright-helpers","commit_stats":null,"previous_names":["checkly/checkly-playwright-helpers"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/checkly/checkly-playwright-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkly%2Fcheckly-playwright-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkly%2Fcheckly-playwright-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkly%2Fcheckly-playwright-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkly%2Fcheckly-playwright-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/checkly","download_url":"https://codeload.github.com/checkly/checkly-playwright-helpers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkly%2Fcheckly-playwright-helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274026706,"owners_count":25209739,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"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":"2024-11-15T03:24:58.801Z","updated_at":"2025-09-07T10:37:30.736Z","avatar_url":"https://github.com/checkly.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Checkly Playwright Helpers\n\n`@checkly/playwright-helpers` is included in runtime 2023.09 and later, this library is only meant to be used within [Checkly](https://checklyhq.com) Multistep and Browser checks.\n\n## Installation\n\n`npm i @checkly/playwright-helpers`\n\n## Methods\n\n### markCheckAsDegraded\n\nMarks a check as degraded if:\n\n- The check is failing with soft assertions, or\n- The check has no failures\n\n```\nimport { markCheckAsDegraded } from '@checkly/playwright-helpers'\n\ntest(\"Checkly Multistep\", async ({ request }) =\u003e {\n  test.step('Google', () =\u003e {\n    const response = await request.get('https://google.com')\n    const data = await response.json()\n\n    if (data.foo.length \u003e 100) {\n      markCheckAsDegraded('Foo is too long.')\n    }\n  })\n})\n```\n\n#### Arguments\n\n- `reason` String (optional). Logged when the method is called. Used to identify which method caused the degradation.\n\n### getAPIResponseTime\n\nGets the request response time.\n\n```\nimport { getAPIResponseTime } from '@checkly/playwright-helpers'\n\ntest(\"Checkly Multistep\", async ({ request }) =\u003e {\n  test.step('Google', () =\u003e {\n    const response = await request.get('https://google.com')\n\n    console.log(getAPIResponseTime(response))\n  })\n})\n```\n\n#### Arguments\n\n- `response` [APIResponse](https://playwright.dev/docs/api/class-apiresponse) (required). A response from a Playwright API request.\n\n## Support\n\nFeel free to reach out to our customer support if you have any questions [support@checklyhq.com](mailto:support@checklyhq.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckly%2Fcheckly-playwright-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheckly%2Fcheckly-playwright-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckly%2Fcheckly-playwright-helpers/lists"}