Skip to content

IsaSih/electron-playwright-tests

Repository files navigation


Playwright was used to execute automated test cases in the application's first window

Electron React Boilerplate uses Electron, React, React Router, Webpack and React Fast Refresh.


Build Status Github Tag Discord

OpenCollective OpenCollective StackOverflow

Install the electron project

Clone the repo and install dependencies:

git clone --depth 1 --branch main https://github.com/IsaSih/tests_suse your-project-name
cd your-project-name
npm install

Having issues installing? See the Electron-react-boilerplate debugging guide

Install playwright in your project dependencies

npm i -D playwright @playwright/test

Install Playwright extensions for VS Code

Playwright Test for VS Code

Save your test files as [example.test.ts]

Initialize playwright in your project

# Run from your project's root directory
npm init playwright@latest

Starting Development - (not needed for executing Playwright tests as the test suit tests the application launch)

Start the app in the dev environment:

npm start

Packaging for Production

To package apps for the local platform:

npm run package

Docs

See the docs and guides here

License

MIT © Electron React Boilerplate