Skip to content

PramodKumarYadav/playwright-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎭 Playwright Sandbox

I have created this repo to both practice playwright and in the process create a feature rich template project that QAs can use for their real projects for doing end to end test automation.

All Test runs

🚀 Trigger targeted tests on new deployments

Note

As the name suggests, this is a draft - work in progress - project. You may refer it to get a lot of cool things out of it but do remember that this is not a refined project (for example, at the moment, the Readme.md (or overall design) is very raw and not yet refined).

🏃🏻‍♂️ Runme

npm run prettier
npm run lint

🚀 Getting Started

Clone project

Start by cloning the repo on your local machine.

Install dependencies

Install NodeJS if not already installed.

Install project dependencies by running below command:

npm install

Run tests

Use the VS Code Extension to run the tests in the tests folder from VS Code or run the following command in the terminal:

npx playwright test --ui

🐞 Playwright Test report

Test report URL for the latest run in CI is available in the run itself and here:: https://pramodkumaryadav.github.io/playwright-sandbox/

Note

Contributing to the project

Install Husky, ESLint, and Prettier

We use a mix of Husky, ESLint and Prettier within our repository to help enforce consistent coding practices.

  • Husky is a tool that will install a pre-commit hook to run the linter any time before you attempt to make a commit.
  • To install the pre-commit hook you will need to run
npm run prepare

Secrets

All secrets should be stored in CI using GitHub secrets and locally using .env.env-name files.

Dotenv files

Secrets for each test envirnoment i.e. (local, dev, staging) are to be added in different test files such as .env.local, .env.dev, .env.staging.

You should ignore all .env* files in .gitignore file so that we do not unintentionally commit and push secrets in our PRs.

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published