Skip to content

Commit

Permalink
tests: increase desktop screenshot threshold due to time changing
Browse files Browse the repository at this point in the history
  • Loading branch information
ahayzen committed Dec 7, 2024
1 parent 80fd9bd commit 82355ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
# Compare the screenshot
desktop.screenshot("login")
diff = compare_images("login")
assert diff < 0.05, f"Login image was different by {diff}%, more than 0.05%"
assert diff < 0.5, f"Login image was different by {diff}%, more than 0.5%"
with subtest("Ensure that we can login"):
desktop.send_chars("\n")
Expand All @@ -142,7 +142,7 @@
# Compare the screenshot
desktop.screenshot("desktop")
diff = compare_images("desktop")
assert diff < 0.05, f"Desktop image was different by {diff}%, more than 0.05%"
assert diff < 0.5, f"Desktop image was different by {diff}%, more than 0.5%"
with subtest("Dismiss initial setup"):
# Click skip
Expand All @@ -152,7 +152,7 @@
# Compare the screenshot
desktop.screenshot("activities")
diff = compare_images("activities")
assert diff < 0.05, f"Activities image was different by {diff}%, more than 0.05%"
assert diff < 0.5, f"Activities image was different by {diff}%, more than 0.5%"
with subtest("Open alacritty (checks home-manager themes)"):
# Type alacritty and launch it
Expand All @@ -170,7 +170,7 @@
# Compare the screenshot
desktop.screenshot("alacritty")
diff = compare_images("alacritty")
assert diff < 0.05, f"Alacritty image was different by {diff}%, more than 0.05%"
assert diff < 0.5, f"Alacritty image was different by {diff}%, more than 0.5%"
with subtest("General metrics"):
print(desktop.succeed("cat /etc/hosts"))
Expand Down

0 comments on commit 82355ff

Please sign in to comment.