electreon-ui-automation
v1.0.0
Published
This repo is design and build to run all of our UI automation
Readme
smart-road-automation
This repo is design and build to run all of our UI automation
Clone
In order to start working on the repo, pull it to your machine using the GitHub CLI or using SSH
# Option 1: GitHub CLI
gh=git clone https://[email protected]/electreoncloud/Electreon%20Cloud/_git/smart-road-automation
# Option 2: GitHub SSH
git=clone [email protected]:v3/electreoncloud/Electreon%20Cloud/smart-road-automationSmart Road Automation V1
Technologies
- Electron
- Playwright (for UI automation)
- TypeScript
Required Environment
- Nodejs == 22.11.0 (recommended to use n)
sudo n 22.11.0
- npm 10.9.0
npm install -g [email protected]
⚙️ Installing
Install dependencies using npm install
validate playwright was installed successfully by checking playwright version: npx playwright --version
🚀 Usage
Running all tests
npx playwright testRunning a single test file
npx playwright test <TEST_FILE_NAME>Run files that have landing or login in the file name
npx playwright test landing loginRunning tests in headed mode (visible application)
npx playwright test landing-page.spec.ts --headed
⚙️ Debugging
Debugging one test file:
npx playwright test example.spec.ts --debugDebugging a test from the line number where the test(.. is defined:
npx playwright test example.spec.ts:10 --debug
Test Report
Running default HTML-REPORT
npx playwright show-report
