Sha256: 27234feb938c78e9cdc5acabe9cbf77054f08d34ec0ade73d9ca7b8cd871c516
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
<main> <h1>Snapshots</h1> <% if @grouped_by_test_class.blank? %> <p>Place `take_screenshot response` in your integration tests after a `response` object is populated and run the tests. Snapshots will appear below.</p> <% end %> <%= form_tag "", method: :get, class: "enable_javascript" do %> <%= label_tag :enable_javascript do %> <%= check_box_tag :enable_javascript, "true", params[:enable_javascript] == "true", onclick: "submit()" %> <span>Open snapshots with JavaScript enabled (by default all JavaScript tags are removed)</span> <% end %> <% end %> <% @grouped_by_test_class.each do |test_group, snapshots| %> <h2><%= test_group %></h2> <ul> <% snapshots.each do |snapshot| %> <li> <%= link_to SnapshotInspector::SnapshotsHelper.snapshot_path(snapshot, enable_javascript: params[:enable_javascript]) do %> <%= snapshot.context.name %> <%= if snapshot.context.take_snapshot_index > 0 then "(#{(snapshot.context.take_snapshot_index + 1).ordinalize} in the same test)" end %> <% end %> </li> <% end %> </ul> <% end %> </main>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
snapshot_inspector-0.1.1 | app/views/snapshot_inspector/snapshots/index.html.erb |