{"id":30287007,"url":"https://github.com/gemini-testing/testplane-testing-library","last_synced_at":"2026-01-20T17:01:11.896Z","repository":{"id":306930217,"uuid":"1026104385","full_name":"gemini-testing/testplane-testing-library","owner":"gemini-testing","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-14T13:48:50.000Z","size":657,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-21T07:13:39.440Z","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/gemini-testing.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,"zenodo":null}},"created_at":"2025-07-25T10:08:06.000Z","updated_at":"2025-10-14T13:48:40.000Z","dependencies_parsed_at":"2025-07-28T14:53:51.104Z","dependency_job_id":null,"html_url":"https://github.com/gemini-testing/testplane-testing-library","commit_stats":null,"previous_names":["gemini-testing/testplane-testing-library"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gemini-testing/testplane-testing-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Ftestplane-testing-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Ftestplane-testing-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Ftestplane-testing-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Ftestplane-testing-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gemini-testing","download_url":"https://codeload.github.com/gemini-testing/testplane-testing-library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Ftestplane-testing-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: 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":[],"created_at":"2025-08-16T21:35:19.756Z","updated_at":"2026-01-20T17:01:11.874Z","avatar_url":"https://github.com/gemini-testing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cpicture\u003e\n        \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./docs/images/logo-light.svg\" width=\"600\"\u003e\n        \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./docs/images/logo-dark.svg\" width=\"600\"\u003e\n        \u003cimg alt=\"testplane testing library logo\" src=\"./docs/images/logo-dark.svg\" width=\"600\"\u003e\n    \u003c/picture\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://testplane.io/docs/v8/guides/how-to-add-testing-library/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Docs-Website-6c47ff\" alt=\"Docs\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/@testplane/testing-library\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/@testplane/testing-library.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/@testplane/testing-library\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@testplane/testing-library.svg\" alt=\"Latest Release\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/gemini-testing/testplane-testing-library/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@testplane/testing-library.svg\" alt=\"License\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://t.me/testplane\"\u003e\u003cimg src=\"https://img.shields.io/badge/community-chat-blue?logo=telegram\" alt=\"Community Chat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Introduction\n[Testing-library](https://testing-library.com/) is a collection of tools for testing web application user interfaces, focused on creating reliable and maintainable tests by emphasizing user behavior. The main advantage of `testing-library` is its focus on interaction with interface elements. And in testplane, you can use the element search methods provided by the `testing-library` itself.\n\n## Installation\n\n1. Install the npm package `@testplane/testing-library`:\n```shell\nnpm i -D @testplane/testing-library\n```\n\n2. Include it in the Testplane config in the `prepareBrowser` section:\n```js\n// .testplane.conf.js\nconst { setupBrowser } = require(\"@testplane/testing-library\");\n\nmodule.exports = {\n    prepareBrowser(browser) {\n        setupBrowser(browser);\n    },\n\n    // other Testplane settings...\n};\n```\n\nIf you are using TypeScript and experiencing issues with testing-library types, you may add the following line to your tsconfig.json\n\n```json\n{\n    \"compilerOptions\": {\n        \"types\": [\n            \"@testplane/testing-library\"\n        ]\n    }\n}\n```\n\n## Usage\n\nAfter configuring, you will be able to use the search by selectors from `testing-library`, as described in the [official documentation](https://testing-library.com/docs/queries/about/). For example, searching for an element by its text:\n\n```js\nit(\"example\", async ({ browser }) =\u003e {\n    await browser.url(\"https://github.com/\");\n\n    const newRepoButton = await browser.getByText(\"New\");\n\n    await newRepoButton.click();\n});\n\n\n```\n\nThis feature will also be available in the context of found elements:\n\n```js\nit(\"example\", async ({ browser }) =\u003e {\n    await browser.url(\"https://github.com/\");\n\n    const sidebar = await browser.$(\".dashboard-sidebar\");\n    const newRepoButton = await sidebar.getByText(\"New\");\n\n    await newRepoButton.click();\n});\n```\n\nDisclaimer:\nAll testing-library selectors return a promise and cannot be chained (like `browser.getByText().click()` — this is not possible).\nEach testing-library selector must be awaited before performing any actions on it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemini-testing%2Ftestplane-testing-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgemini-testing%2Ftestplane-testing-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemini-testing%2Ftestplane-testing-library/lists"}