Twelve test suites, one contract

Every one of the 171 scenarios across all 22 features is implemented in all twelve suites below, driving the same running app through its data-testid attributes. Each test file launches its own dedicated browser for its scenarios — a shared browser handling many files' logins back-to-back proved unreliable in practice, so every suite runs one worker at a time with a fresh browser per file instead.

Selenium · JavaScript

The original suite — every other suite is a mechanical port of this one.

tests-with-selenium-javascript/

Playwright · JavaScript

Same scenarios, using page.getByTestId(...) instead of a Selenium driver.

tests-with-playwright-javascript/

Selenium · TypeScript

Same structure, with real types (WebDriver, FieldRow[], ...) throughout. Runs under Mocha via tsx.

tests-with-selenium-typescript/

Playwright · TypeScript

Real types (Page, Locator, Browser, ...). Playwright runs .ts files natively.

tests-with-playwright-typescript/

Selenium · Python

pytest, one Test* class per feature, one test_* method per scenario. Selenium Manager handles the Chrome driver.

tests-with-selenium-python/

Playwright · Python

pytest with Playwright's synchronous API and page.get_by_test_id(...).

tests-with-playwright-python/

Selenium · C#

NUnit through dotnet test, one fixture per feature with its own browser.

tests-with-selenium-c-sharp/

Playwright · C#

NUnit with Microsoft.Playwright and its async API.

tests-with-playwright-c-sharp/

Selenium · Java

JUnit 5 through Maven, one class per feature.

tests-with-selenium-java/

Playwright · Java

JUnit 5 and Maven, using the Playwright for Java library.

tests-with-playwright-java/

Selenium · Rust

The thirtyfour crate; each feature file is its own cargo test binary run by libtest-mimic.

tests-with-selenium-rust/

Playwright · Rust

The community playwright-rs crate (Playwright has no official Rust binding).

tests-with-playwright-rust/

Running them

pnpm install
pnpm run dev                        # app at http://localhost:5173

pnpm run test:selenium              # Mocha (JS)
pnpm run test:selenium-typescript   # Mocha (TS, via tsx)
pnpm run test:playwright            # Playwright (JS)
pnpm run test:playwright-typescript # Playwright (TS)

pip install -r requirements.txt     # once, for the two Python suites
playwright install chromium
pnpm run test:selenium-python       # pytest + Selenium
pnpm run test:playwright-python     # pytest + Playwright

pnpm run test:selenium-c-sharp      # NUnit + Selenium (needs the .NET SDK)
pnpm run test:playwright-c-sharp    # NUnit + Playwright
pnpm run test:selenium-java         # JUnit 5 + Selenium (needs a JDK and Maven)
pnpm run test:playwright-java       # JUnit 5 + Playwright
pnpm run test:selenium-rust         # thirtyfour (needs cargo)
pnpm run test:playwright-rust       # playwright-rs

See the source repository's README for full setup and known limitations.