ExSnappy (ExSnappy v0.2.0)
View SourceExSnappy is a library for taking snapshots of HTML using the Go Snappy service.
Summary
Functions
Takes a snapshot of the given HTML and sends it to the Go Snappy service.
Functions
Takes a snapshot of the given HTML and sends it to the Go Snappy service.
Uses the name of the test function as the snapshot name.
You can explicitly set the name of the snapshot by passing the :name
option.
By default, any <script> tags in the HTML will be removed before sending to the Go Snappy service. This is to ensure that the DOM will not be modified when processed for screenshots.
Other options will be passed to the Go Snappy service, such as setting dimensions.