Playwright + BDD (playwright-bdd) tests for the BankAura demo app (https://bankaura.vercel.app/), runnable locally and on BrowserStack Automate.
npm installCredentials are never stored in the repo. Export them before cloud runs:
export BROWSERSTACK_USERNAME=<your username>
export BROWSERSTACK_ACCESS_KEY=<your access key>BASE_URL can be set to point the tests at a different environment (defaults to https://bankaura.vercel.app/).
| Command | What it does |
|---|---|
npm run bddgen |
Generate Playwright specs from the feature files |
npm test |
Generate and run locally (Chromium) |
npm run test:browserstack |
Generate and run on all BrowserStack platforms below |
- Windows 11 – Chrome (latest)
- Windows 11 – Firefox (latest)
- macOS Sonoma – Safari / WebKit (latest)
- Samsung Galaxy S23 (Android 13) – Chrome, real device
Feature: BankAura demo login and Banking tab. Each scenario starts by opening the landing page, going to Sign In and logging in with the demo account.
- Demo account login lands on the dashboard overview – the URL is
/dashboard, the heading reads "Welcome back, demo_account", and the sidebar shows the Banking item. - Banking tab shows the account overview – after opening Banking, the heading and subtitle show, the account balance and transactions are listed, and all six sub-tabs (Accounts, Transfer, Beneficiaries, Bill Pay, Cards, Statements) are available.