Skip to content

Commit

Permalink
Merge pull request #450 from Renumics/playbook_link_fix
Browse files Browse the repository at this point in the history
Playbook link fix
  • Loading branch information
neindochoh authored May 29, 2024
2 parents 04e9e5d + a5e255a commit 6be8641
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<h3 align="center">
<a href="https://spotlight.renumics.com"><b>Documentation</b></a> &bull;
<a href="https://renumics.com/docs/playbook"><b>Playbook</b></a> &bull;
<a href="https://renumics.com/docs/data-centric-ai/playbook"><b>Playbook</b></a> &bull;
<a href="https://renumics.com/blog/"><b>Blog</b></a> &bull;
<a href="https://renumics.com/api/spotlight/"><b>API Reference</b></a>
</h3>
Expand Down
10 changes: 10 additions & 0 deletions tests/ui/test_startpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import pytest
from diffimg import diff
from PIL import Image
from selenium.webdriver.remote.webdriver import WebDriver

from .helpers import (
Expand Down Expand Up @@ -33,6 +34,15 @@ def take_and_diff_snapshot(
reference_screenshot_path = old_screenshots_folder / f"{name}-{browser_name}.png"

if reference_screenshot_path.is_file():
# make sure both are in the same color mode
im1 = Image.open(str(reference_screenshot_path))
im2 = Image.open(str(new_screenshot_path))
if im1.mode != im2.mode:
im1 = im1.convert("RGB")
im2 = im2.convert("RGB")
im1.save(str(reference_screenshot_path))
im2.save(str(new_screenshot_path))

diff_ratio = diff(
str(reference_screenshot_path),
str(new_screenshot_path),
Expand Down

0 comments on commit 6be8641

Please sign in to comment.