Phoenix Test Playwright
Description
Execute PhoenixTest cases in an actual browser via Playwright.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
[](https://hex.pm/packages/phoenix_test_playwright) [](https://hexdocs.pm/phoenix_test_playwright/) [](https://github.com/ftes/phoenix_test_playwright/blob/main/LICENSE.md) [](https://github.com/ftes/phoenix_test_playwright/actions)
PhoenixTestPlaywright
Execute [PhoenixTest](https://hexdocs.pm/phoenix_test) cases in an actual browser via [Playwright](https://playwright.dev/).
defmodule Features.RegisterTest do
use PhoenixTest.Playwright.Case,
async: true, # async with Ecto sandbox
parameterize: [ # run in multiple browsers in parallel
%{browser_pool: :chromium},
%{browser_pool: :firefox}
]
@tag trace: :open # replay in interactive viewer
test "register", %{conn: conn} do
conn
|> visit(~p"/")
|> click_link("Register")
|> fill_in("Email", with: "f@ftes.de")
|> click_button("Create an account")
|> assert_has(".error", text: "required")
|> screenshot("error.png", full_page: true)
end
end
Please [get in touch](https://ftes.de) with feedback of any shape and size.
Enjoy! Freddy.
P.S. Looking for a standalone Playwright client? See [PlaywrightEx](https://github.com/ftes/playwright_ex).
Getting started
Add dependency
# mix.exs {:phoenix_test_playwright, "~> 0.14", only: :test, runtime: false}Install playwright and browser
npm --prefix assets i -D playwright npx --prefix assets playwright install chromium --with-depsConfig
# config/test.exs config :phoenix_test, otp_app: :your_app config :your_app
Related Skills
Spec Kit
💫 Toolkit to help you get started with Spec-Driven Development
Testing Webapp Testing
Test local web applications using Playwright for UI verification and debugging
Testing #29
, [#52](https://github.com/affaan-m/everything-claude-code/issues/52), [#103](https://github.com/affaan-m/ever
Testing Fix Issue
by metabase - Addresses GitHub issues by taking issue number as parameter, analyzing context, implementing sol
Testing Pypict Test Design
Design comprehensive test cases using PICT (Pairwise Independent Combinatorial Testing) for optimized test sui
Testing gstack
| 15,000+ | Garry Tan's exact Claude Code setup: 6 opinionated tools that serve as CEO, Eng Manager, Release M
Testing