All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Docs: Document and validate global and per-test configuration
- Docs: Document non-standard driver functions (
click/4
,click_button/4
etc.). Also, exclude standard driver functions from docs. - Config: Override config via
Case
opts, e.g.use PhoenixTest.Playwright.Case, headless: false
- Keyboard simulation:
type/{3,4}
andpress/{3,4}
- Renamed:
PheonixTest.Case
toPhoenixTest.Playwright.Case
defmodule MyTest do - use PhoenixTest.Case, async: true + use PhoenixTest.Playwright.Case, async: true - @moduletag :playwright
- Screenshots:
screenshot/{2,3}
function andscreenshot: true
config for auto-capture
- Config: flattened list (remove nested
browser
config), override via top-level ExUnit@tag ...
s (remove nested@tag playwright: [...]
)# config/test.exs config :phoenix_test, playwright: [ - browser: [browser: :chromium, headless: false, slow_mo: 0] + browser: :chromium, + headless: false, + slow_mo: 0
- Auto-convert case of playwright messages keys (snake_case to camelCase)
- Add more config options (browser, JS console) @s3cur3
- Improve error messages @s3cur3
- Improve setup and docs for contributors @s3cur3
@tag trace: :open
to auto open recorded Playwright trace in viewer