PercyClient (percy_client v0.1.1)

Wrapper functions for the Percy client API, for visual regression testing.

Summary

Functions

Returns true if the local Percy server is running, false otherwise.

Takes a snapshot of the current page and posts it to Percy.

Functions

Link to this function

percy_enabled?()

@spec percy_enabled?() :: boolean()

Returns true if the local Percy server is running, false otherwise.

Link to this function

snapshot(session, name, opts \\ [])

@spec snapshot(Wallaby.Session.t(), String.t(), Keyword.t()) :: :ok | :error

Takes a snapshot of the current page and posts it to Percy.