{"repo":"dfinity/internet-identity-playwright","free":true,"listed":false,"github":"https://github.com/dfinity/internet-identity-playwright","clone":"git clone https://github.com/dfinity/internet-identity-playwright.git","description":"A Playwright library to simplify the integration of Internet Identity authentication in E2E tests.","language":"TypeScript","stars":11,"topics":["e2e","icp","internet-computer","playwright","testing"],"license":"Apache-2.0","category":"scrapers-browser-automation","readme_excerpt":"🔐 Internet Identity Playwright A Playwright library to simplify the integration of Internet Identity authentication in E2E tests. 🚀 Introduction This repository offers Playwright fixtures designed to assist developers in creating end-to-end (E2E) tests for dApps utilizing Internet Identity. These pre-built scenarios allow developers to seamlessly integrate authentication flows, including the creation and reuse of identities, without needing to implement the flows themselves. 🖥️ Installation ✍️ Usage To use the Internet Identity Playwright fixtures, follow these steps: 1. Import the Fixtures In your Playwright test file, import the fixtures provided by this library. 2. Write Your Tests Use the extended fixtures in your tests to perform authentication flows. [!NOTE] The signIn() method automatically detects whether this is a first-time passkey flow or an existing passkey flow, handling the complexity for you. It is also worth noting that it always tries to reuse the same default identity that was created within a Playwright session to ensure the provided identity is reproducible. The iiPage object represents the page of your application that contains the call to action to start the authentication flow with Internet Identity. By default, the fixture will search for a button identified by the attribute [data-tid=login-button] . You can customize this behavior by providing your own selector. When creating a new passkey for the first time, the identity name is set by default to ","default_branch":null,"files":null,"tree":[],"storefront":"/r/dfinity","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dfinity/internet-identity-playwright/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}