Playwright Test Suite for Test Bank Demo

Simona

Simona M.

📦 Playwright Test Suite for Test Bank demo page

Page-Object-Model-based test suite (JavaScript + Playwright) for a single-page example app.

🎬 HappyFlow Demo

🚀 Features

Login Page: Testing the login functionality and the structure of the login page.
Home Page: Testing the log out functionality and the structure of the home page and navigation bar.
Edge-Case Coverage: Empty fields, invalid creds, SQL injections, etc.
Page Object Model: Clear separation of page structure and test logic.
CI Pipeline Integration: Tests that run successfully in GitHub pages.
Reporting: HTML reports in the pipeline.

📋 Prerequisites

Node.js LTS (v20+ recommended)
npm
Git

🛠️ Installation

git clone https://github.com/sim-mit/testbank-test-automation.git
cd testbank-test-automation
npm install

⚡ Quick Start

Run locally (headed):

npx playwright test --headed

Run headless & generate HTML report:

npx playwright test
npx playwright show-report

Run tests with Playwright UI:

npx playwright test --ui

🔁 CI Pipeline

I generated GitHub Actions configuration that works out of the box for CI/CD pipeline integration. Pipeline
Each pipeline run generates a report that can be downloaded from the artifacts section in the run. Example pipeline run
Like this project

Posted Aug 6, 2025

Developed a Playwright test suite for a demo app with CI/CD integration.