Skip to content

manojkumarthakur/PlaywrightTypeScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎭 Playwright TypeScript Test Suite

A comprehensive end-to-end testing framework built with Playwright and TypeScript for robust web application testing.


🚀 Quick Start

Clone the Repository

git clone git@github.com:manojkumarthakur/PlaywrightTypeScript.git
cd PlaywrightTypeScript

Install Dependencies

npm install

Install/Update Playwright Browsers

npx playwright install

🎯 Running Tests

Execute All Tests

npx playwright test

Run Specific Test File

npx playwright test example

Interactive UI Mode

npx playwright test --ui

Browser-Specific Testing

npx playwright test --project=chromium

Debug Mode

npx playwright test --debug

View Test Reports

npx playwright show-report

Run Custom Scripts

npm run script-name

🧪 Test Generation (Codegen)

Generate Playwright tests automatically by recording browser actions:

npx playwright codegen

🛠️ Initial Setup (New Projects)

To create a new Playwright project from scratch:

npm init playwright@latest

📂 Project Structure

And check out the following files:
  - ./uitest/example.spec.ts - Example end-to-end test
  - ./tests-examples/demo-todo-app.spec.ts - Demo Todo App end-to-end tests
  - ./playwright.config.ts - Playwright Test configuration



🧰 Useful Commands

Command Description
npx playwright test Run all end-to-end tests
npx playwright test --ui Launch interactive UI mode
npx playwright test --project=chromium Test on Desktop Chrome only
npx playwright test example Run specific test file
npx playwright test --debug Debug mode with step-through
npx playwright codegen Auto-generate tests with Codegen
npx playwright show-report View HTML test report

📚 Documentation

Visit the official Playwright Documentation for comprehensive guides and API references.


📋 TODO


🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


📝 License

This project is open source and available under the MIT License.


Happy Testing! 🎭✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors