{"repo":"descope-sample-apps/descope-playwright-react-example","free":true,"listed":false,"github":"https://github.com/descope-sample-apps/descope-playwright-react-example","clone":"git clone https://github.com/descope-sample-apps/descope-playwright-react-example.git","description":"Sample app for Descope playwright testing","language":"TypeScript","stars":40,"topics":["playwright","sample-app"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"--- Playwright / React Sample App with Descope This sample app demonstrates the integration of Descope authentication within a web application tested using Playwright's end-to-end testing capabilities. The app allows users to log in, and once authenticated, displays the user ID. It includes e2e tests to create a test user with the Descope Management SDK. Table of Contents 📝 1. Installation 2. Setting Up Testing Environment 3. Running the Application 4. Running Tests 5. Contributing 6. Issue Reporting 7. License Installation 💿 To get started with this app, clone the repository and install dependencies: Setting Up Testing Environment 🌐 Before running the tests, ensure that you have set up your environment variables correctly by following these steps: 1. Get your Project ID from the Project Settings Page 2. Then, create a Management key if you do not currently have one here. NOTE: When you create the management key, ensure it is associated with the project you are testing with. 3. Set your environment variables within a .env file at the root of the directory (you can use the .env.example file): After this, you're ready to run the application, and also the playwright end-to-end tests. Running the Application 🚀 To run the app locally, execute: Navigate to http://localhost:3000/ to see the app in action. Running Tests 🧪 The e2e tests can be run using the following command: NOTE: If you don't already have playwright installed, you'll need to install it using the following comma","default_branch":null,"files":null,"tree":[],"storefront":"/r/descope-sample-apps","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/descope-sample-apps/descope-playwright-react-example/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."}