View Source PhoenixTest.Playwright.Config (PhoenixTestPlaywright v0.4.0)

Configuration options for the Playwright driver. Most configuration is global (config/test.exs). Some configuration can be overridden via ExUnit tags.

  • :browser (:android | :chromium | :electron | :firefox | :webkit) - Override via @moduletag or parameterize. The default value is :chromium.

  • :cli (String.t/0) - The default value is "assets/node_modules/playwright/cli.js".

  • :headless (boolean/0) - Override via @moduletag. The default value is true.

  • :js_logger (:default | false | (msg -> nil)) - The default value is :default.

  • :screenshot (boolean() | Keyword.t()) - Override via @tag.

    • :full_page (boolean/0) - The default value is true.

    • :omit_background (boolean/0) - The default value is false.

    The default value is false.

  • :screenshot_dir (String.t/0) - The default value is "screenshots".

  • :timeout (non_neg_integer/0) - The default value is 2000.

  • :slow_mo (non_neg_integer/0) - Override via @moduletag. The default value is 0.

  • :trace (boolean() | Keyword.t()) - Override via @tag.

    • :open (boolean/0) - The default value is false.

    The default value is false.

  • :trace_dir (String.t/0) - The default value is "traces".

Summary

Functions

global()

global(key)

keys()

validate!(config)