End-to-end test for Finstack (login → add expense transaction) using WebdriverIO v9 with @wdio/browserstack-service, in this repo.
| Windows | macOS | |
|---|---|---|
| Node.js | ≥ 18 — nodejs.org | ≥ 18 — brew install node or nodejs.org |
| npm | Bundled with Node.js | Bundled with Node.js |
| Chrome | For local runs | For local runs |
cd path/to/Automate-Onboarding/WebdriverIO
npm installcd path\to\Automate-Onboarding\WebdriverIO
npm installnpm run test:localnpm run test:localUses wdio.local.conf.js — connects directly to local Chrome, no BrowserStack credentials needed.
export BROWSERSTACK_USERNAME=<your-username>
export BROWSERSTACK_ACCESS_KEY=<your-access-key>
npm testOr inline:
BROWSERSTACK_USERNAME=<your-username> BROWSERSTACK_ACCESS_KEY=<your-access-key> npm test$env:BROWSERSTACK_USERNAME="<your-username>"
$env:BROWSERSTACK_ACCESS_KEY="<your-access-key>"
npm testset BROWSERSTACK_USERNAME=<your-username>
set BROWSERSTACK_ACCESS_KEY=<your-access-key>
npm testCredentials are at automate.browserstack.com → Account → Settings.
| Script | Config | Where it runs |
|---|---|---|
npm run test:local |
wdio.local.conf.js |
Local Chrome |
npm test |
wdio.conf.js |
BrowserStack (10 platforms) |
| # | Platform | Browser |
|---|---|---|
| 1 | Windows 11 | Chrome (latest) |
| 2 | Windows 10 | Edge (latest) |
| 3 | Windows 11 | Firefox (latest) |
| 4 | macOS Ventura | Chrome (latest) |
| 5 | macOS Sonoma | Safari (latest) |
| 6 | iPhone 15 (iOS 17) | Safari |
| 7 | iPhone 14 (iOS 16) | Safari |
| 8 | Samsung Galaxy S24 (Android 14) | Chrome |
| 9 | Google Pixel 8 (Android 14) | Chrome |
| 10 | Samsung Galaxy Tab S11 (Android 16) | Chrome |
WebdriverIO/
├── tests/
│ └── e2e-login-add-transaction.spec.js # E2E test spec
├── wdio.conf.js # BrowserStack config + capabilities
├── wdio.local.conf.js # Local Chrome config
├── package.json
└── README.md
| Step | Action | Expected |
|---|---|---|
| 1 | Navigate to /login |
Sign-in button visible |
| 2–3 | Enter email + password | Fields populated |
| 4 | Click Sign In | Redirected to /dashboard, greeting visible |
| 5 | Click Add Transaction | Modal dialog opens |
| 6–7 | Enter amount 150.00 + description Grocery Shopping |
Fields populated |
| 8–9 | Select Category → Food & Dining | Option selected |
| 10–11 | Select Account → Main Checking | Option selected |
| 12 | Submit transaction | — |
| 13 | Verify modal closes | Dashboard greeting still visible |