PhoenixTest.Playwright.Case (PhoenixTestPlaywright v0.8.0)

View Source

ExUnit case module to assist with browser based tests. PhoenixTest.Playwright and PhoenixTest.Playwright.Config explain how to use and configure this module.

If the default setup behaviour and order does not suit you, consider

Summary

Functions

Merges the ExUnit context with PhoenixTest.Playwright.Config opts. Uses the result to create a new browser context and page. Adds :conn to the context.

Merges the ExUnit context with PhoenixTest.Playwright.Config opts. Uses the result to launch the browser. Adds :browser_id to the context.

Functions

do_setup(context)

Merges the ExUnit context with PhoenixTest.Playwright.Config opts. Uses the result to create a new browser context and page. Adds :conn to the context.

do_setup_all(context)

Merges the ExUnit context with PhoenixTest.Playwright.Config opts. Uses the result to launch the browser. Adds :browser_id to the context.

launch_browser(opts)

new_session(config, context)