Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radekbednarik/playwright-test-skeleton
npm package for creating Playwright Test project skeleton.
https://github.com/radekbednarik/playwright-test-skeleton
javascript npm-package playwright playwright-test skeleton template typescript
Last synced: 4 months ago
JSON representation
npm package for creating Playwright Test project skeleton.
- Host: GitHub
- URL: https://github.com/radekbednarik/playwright-test-skeleton
- Owner: radekBednarik
- License: mit
- Created: 2024-04-03T19:21:56.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-12T06:48:39.000Z (4 months ago)
- Last Synced: 2024-10-12T21:01:54.170Z (4 months ago)
- Topics: javascript, npm-package, playwright, playwright-test, skeleton, template, typescript
- Language: JavaScript
- Homepage:
- Size: 87.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Playwright Test skeleton project generator
This package will create a basic template of Playwright Test project with following properties:
- language is Typescript or JavaScript
- ESLint config file for linting is created
- Prettier is installed
- Eslint and Prettier git precommit hooks are created, if user wants to
- basic example tests are created in `/tests` folder
- basic example of Page Object Model page representation
- default Playwright Test configuration file is created## Preconditions
- [Node.js](https://nodejs.org) LTS installed
- versions 18.x and 20.x are supported and were tested
- git installed
- OS is supported by Playwright (Win10+, Ubuntu, Debian, MacOs). Details are [HERE](https://playwright.dev/docs/intro#system-requirements)## Installation
- open you shell and switch to the folder, where you want to have your test project files
- run `npx playwright-test-skeleton`
- go thru CLI prompts to choose from language and precommit hooks options
- in case you are on Linux, you will have to provide your `sudo` password when installing Playwright linux dependencies## Verify
- run `npx playwright test` - test should run, no errors in console.