taulinger / junit5-play

JUnit5-Playwright proof-of-concept

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JUnit-Playwright proof-of-concept

Setup for a JUnit 5 / Playwright BDD-style testing project. Uses the JUnit ConsoleLauncher for a pretty printed output:

╷
└─ JUnit Jupiter ✔
   └─ Main menu test  ✔
      ├─ Given a main menu for mobile usage  ✔
      │  └─ When page loaded  ✔
      │     └─ Then the main menu should show a button in (Browser) ✔
      │        ├─ [1] type=Firefox ✔
      │        ├─ [2] type=Chromium ✔
      │        └─ [3] type=Webkit ✔
      └─ Given a main menu for desktop usage  ✔
         └─ When page loaded  ✔
            └─ Then the main menu should show a button in (Browser) ✔
               ├─ [1] type=Firefox ✔
               ├─ [2] type=Chromium ✔
               └─ [3] type=Webkit ✔

Usage

Prerequisites

Steps

  • Clone the Github project:
git clone https://github.com/taulinger/junit5-play.git
  • Change to the git repository and run Maven:
mvn test

About

JUnit5-Playwright proof-of-concept

License:Apache License 2.0


Languages

Language:Java 100.0%