Excessibility (excessibility v0.4.0)

Documentation for Excessibility.

Link to this section Summary

Functions

Using the Excessibility macro will require the file for you.

Captures an HTML screenshot

The html_snapshot macro can be called to produce an HTML snapshot of any of the following

Link to this section Functions

Link to this macro

__using__(opts)

(macro)

Using the Excessibility macro will require the file for you.

examples

Examples

use Excessibility
Link to this function

capture_html!(source, env, module, opts)

Captures an HTML screenshot

Link to this macro

html_snapshot(source, opts \\ [])

(macro)

The html_snapshot macro can be called to produce an HTML snapshot of any of the following:

  • A Phoenix Conn
  • A Wallaby Session
  • A LiveViewTest View
  • A LiveViewTest Element These snapshots can then be used later to run pa11y against by calling the mix task..It will return the thing that was passed in so that you can include it in a pipeline. You can optionally pass a second argument of true to open the file in your browser for development purposes.

examples

Examples

iex> Excessibility.html_snapshot(source, opts \ [])
    source