Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ludovicobesana/playwrightstarterkit
Boilerplate repository aimed at helping developers kickstart automated testing projects using Playwright.
https://github.com/ludovicobesana/playwrightstarterkit
boilerplate playwright typescript
Last synced: 3 days ago
JSON representation
Boilerplate repository aimed at helping developers kickstart automated testing projects using Playwright.
- Host: GitHub
- URL: https://github.com/ludovicobesana/playwrightstarterkit
- Owner: ludovicobesana
- License: mit
- Created: 2023-11-05T18:33:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-26T17:19:05.000Z (12 months ago)
- Last Synced: 2024-12-18T21:38:56.258Z (about 2 months ago)
- Topics: boilerplate, playwright, typescript
- Language: TypeScript
- Homepage: https://playwright.dev/
- Size: 181 KB
- Stars: 0
- Watchers: 2
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Playwright Starter Kit ðŸŽ
## Overview
Playwright Starter Kit is a comprehensive boilerplate repository designed to assist developers in initiating automated testing projects using Playwright. This kit includes pre-configured settings and sample tests, demonstrating effective practices for web testing with [Playwright](https://playwright.dev/).
## Features
- Pre-configured Playwright environment
- Example tests showcasing Playwright's capabilities
- Customizable scripts for diverse testing scenarios## Installation
Before you begin, ensure you have [Node.js](https://nodejs.org/en/) installed.
Clone the repository:
```bash
git clone https://github.com/your-username/PlaywrightStarterKit.git
cd PlaywrightStarterKit
```Install dependencies:
```bash
yarn # or npm install
```Install Browser Drivers:
```bash
yarn playwright install # or npm run playwright install
```## Usage
The repository includes several npm scripts for different testing scenarios:
- `npm run test`: Run all tests
- `npm run test:chrome`: Run tests in Chrome
- `npm run test:debug`: Run tests in debug mode
- `npm run test:headed`: Run tests in headed mode
- `npm run test:headed:debug`: Debug tests in headed mode
- `npm run desktop`: Run desktop-specific tests
- `npm run mobile`: Run mobile-specific tests
- `npm run desktop:atomic`: Run atomic tests for desktop
- `npm run mobile:atomic`: Run atomic tests for mobile
- `npm run desktop:flow`: Run flow tests for desktop
- `npm run mobile:flow`: Run flow tests for mobile
- `npm run prepare`: Install Husky for Git hooks
- `npm run ui`: Launch Playwright test UI
- `npm run lint`: Run ESLint
- `npm run lint:fix`: Auto-fix ESLint issues
- `npm run prettier`: Check code format
- `npm run prettier:fix`: Auto-format code## Contributing
Contributions are welcome!
## License
This project is licensed under the [MIT License](LICENSE).