Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Badge render test: snap after the donut reads the system's motion setting

KnifeLemon2b63944474c8
diff --git a/tests/Filee.App.Tests/DownloadBadgeTests.cs b/tests/Filee.App.Tests/DownloadBadgeTests.cs
index 16e79f9a..d79768c8 100644
--- a/tests/Filee.App.Tests/DownloadBadgeTests.cs
+++ b/tests/Filee.App.Tests/DownloadBadgeTests.cs
@@ -161,7 +161,10 @@ public class DownloadBadgeTests
var model = AppHost.Get<RadialViewModel>();
// As the drop zone opens it (the drag-mode window stays see-through until a drag brings files).
radial.ShowForFiles(500, 500, [Path.Combine(Path.GetTempPath(), "cat.png")]);
+ // Showing reads the system's setting again (Motion.Refresh): snap the badge for the checks below.
+ Motion.Set(false);
var window = radial.Window!;
+ Assert.Contains("reduced-motion", window.Classes);
try
{
window.DonutControl.BeginProgress();