PhoenixTest.Playwright.Case (PhoenixTestPlaywright v0.8.0)
View SourceExUnit 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
- using config opt
browser_context_opts
, which are passed toPhoenixTest.Playwright.Browser.new_context/2
- using config opt
browser_page_opts
, which are passed toPhoenixTest.Playwright.BrowserContext.new_page/2
- implementing your own
Case
(the setup functions in this module are public for your convenience)
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
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.