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.

test(setup): cover shared desktop demos and localized crop playback

BlackSpirits3c22789da348
diff --git a/tests/Filee.Setup.Tests/SetupWindowTests.cs b/tests/Filee.Setup.Tests/SetupWindowTests.cs
index fc7ee140..3a2ab72a 100644
--- a/tests/Filee.Setup.Tests/SetupWindowTests.cs
+++ b/tests/Filee.Setup.Tests/SetupWindowTests.cs
@@ -111,7 +111,14 @@ public class SetupWindowTests
Assert.Equal(model.Deck.Slides[0].MediaFor(language).Source, slides.Media.Source);
Assert.True(slides.Media.HasPicture);
if (language is "pt-PT" or "pt-BR")
- Assert.Contains($"/{language}/", slides.Media.Source!.AbsolutePath);
+ {
+ // Browser and flip keep the complete shared desktop interaction; crop uses its own Portuguese media.
+ Assert.Equal(model.Deck.Slides[0].Media, slides.Media.Source);
+ slides.GoTo(3);
+ Pump();
+ Assert.Contains($"/{language}/crop.webp", slides.Media.Source!.AbsolutePath);
+ Assert.Equal(model.Deck.Slides[3].MediaFor(language).PosterFrame, slides.Media.PosterFrame);
+ }
Check(window, $"setup-3-installing-{language}.png");
runner.Result = new InstallResult(new LaunchRequest(@"C:\Program Files\Filee\Filee.exe", "--install-engines=pandoc"),