Skip to content

Commit

Permalink
0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
muriloime committed Dec 18, 2024
1 parent 2efcba2 commit d6c80ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/lookbook_visual_tester/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module LookbookVisualTester
VERSION = "0.1.0"
VERSION = "0.1.1"
end
11 changes: 8 additions & 3 deletions lib/tasks/lookbook_visual_tester.rake
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,14 @@ namespace :lookbook_visual_tester do
file.puts "<li>"
file.puts "<h2>#{preview.titleize} - #{scenario.titleize}</h2>"
file.puts "<div style='display: flex; gap: 10px;'>"
file.puts "<div><h3>Baseline</h3><img src='#{baseline_image.relative_path_from(base_path)}' alt='Baseline'></div>"
file.puts "<div><h3>Current</h3><img src='#{current_image.relative_path_from(base_path)}' alt='Current'></div>"
file.puts "<div><h3>Diff</h3><img src='#{diff_file.relative_path_from(base_path)}' alt='Diff'></div>"

baseline_image_path = Pathname.new(baseline_image)
current_image_path = Pathname.new(current_image)
diff_file_path = Pathname.new(diff_file)

file.puts "<div><h3>Baseline</h3><img src='#{baseline_image_path.relative_path_from(base_path)}' alt='Baseline'></div>"
file.puts "<div><h3>Current</h3><img src='#{current_image_path.relative_path_from(base_path)}' alt='Current'></div>"
file.puts "<div><h3>Diff</h3><img src='#{diff_file_path.relative_path_from(base_path)}' alt='Diff'></div>"
file.puts "</div>"
file.puts "</li>"
end
Expand Down

0 comments on commit d6c80ca

Please sign in to comment.