Skip to content

hernandosebastian/playwright101-lambdatest-assignment

Repository files navigation

LambdaTest Certifications – Playwright 101

This repository contains the solution for the Playwright 101 certification assignment from LambdaTest Certifications.

📋 Project Requirements

  • Uses Playwright v1.52.0
  • Includes 3 different test locators (e.g. CSS, text, ID)
  • Tests run in parallel on multiple browser/OS combinations via LambdaTest
  • Video, network logs, console logs, and screenshots are enabled
  • LambdaTest test run IDs will be included in the submission

🧪 Automated Test Scenarios

  1. Simple Form Demo – Fill out a text input and verify the displayed message.
  2. Drag & Drop Sliders – Adjust the slider to a specific value and validate it.
  3. Input Form Submit – Submit a form both empty and filled, verifying validation and success messages.

📦 Useful Scripts

npm install          # Install dependencies
npm run test         # Run all tests on LambdaTest
npm run test:local   # Run all tests locally

🚀 Setup

  1. Install dependencies:
npm install
  1. Configure LambdaTest credentials:
  • Use the .env.dist template file by renaming it to .env and adding your credentials:
LT_USERNAME=your_lambdatest_username
LT_ACCESS_KEY=your_lambdatest_access_key

Important

Replace with your actual LambdaTest username and access key

▶️ How to Run Tests

Run tests on LambdaTest:

npm run test

Run tests locally:

npm run test:local

Run Playwright Tests In Gitpod

Select the button below to try this demo in Gitpod:

Run in Gitpod

After the Gitpod session launches:

  1. Follow the Setup instructions section above to configure your environment
  2. Make sure to rename .env.dist to .env and add your LambdaTest credentials as shown in the Setup section

For more information on LambdaTest credentials, check this guide.

👤 Author

[https://github.com/hernandosebastian] – Certification Project for LambdaTest