From b5f3c16fa6f578c9b30b3c8f03d3db972997a584 Mon Sep 17 00:00:00 2001 From: --global Date: Mon, 9 Dec 2024 14:57:24 -0800 Subject: [PATCH] try installing font from source --- src/AppInstallerCLIE2ETests/FontCommand.cs | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/AppInstallerCLIE2ETests/FontCommand.cs b/src/AppInstallerCLIE2ETests/FontCommand.cs index 1ca17ba2ed..3fdc287c63 100644 --- a/src/AppInstallerCLIE2ETests/FontCommand.cs +++ b/src/AppInstallerCLIE2ETests/FontCommand.cs @@ -21,19 +21,6 @@ public class FontCommand : BaseCommand public void OneTimeSetup() { WinGetSettingsHelper.ConfigureFeature("fonts", true); - - // TODO: Remove once font manifests can be installed from a source. - TestCommon.RunAICLICommand("settings", "--enable LocalManifestFiles"); - } - - /// - /// One time tear down. - /// - [OneTimeTearDown] - public void OneTimeTearDown() - { - // TODO: Remove once font manifests can be installed from a source. - TestCommon.RunAICLICommand("settings", "--disable LocalManifestFiles"); } /// @@ -42,7 +29,7 @@ public void OneTimeTearDown() [Test] public void InstallFont() { - var result = TestCommon.RunAICLICommand("font install", $"-m {TestCommon.GetTestDataFile(@"Manifests\TestFont.yaml")}"); + var result = TestCommon.RunAICLICommand("install", "AppInstallerTest.TestFont"); Assert.AreEqual(Constants.ErrorCode.S_OK, result.ExitCode); Assert.True(result.StdOut.Contains("Successfully installed")); TestCommon.VerifyFontPackage(Constants.TestFontSubKeyName, Constants.FontFileName); @@ -54,7 +41,7 @@ public void InstallFont() [Test] public void InstallFont_MachineScope() { - var result = TestCommon.RunAICLICommand("font install", $"-m {TestCommon.GetTestDataFile(@"Manifests\TestFont.yaml")} --scope Machine"); + var result = TestCommon.RunAICLICommand("install", "AppInstallerTest.TestFont --scope Machine"); Assert.AreEqual(Constants.ErrorCode.S_OK, result.ExitCode); Assert.True(result.StdOut.Contains("Successfully installed")); TestCommon.VerifyFontPackage(Constants.TestFontSubKeyName, Constants.FontFileName, TestCommon.Scope.Machine); @@ -66,7 +53,7 @@ public void InstallFont_MachineScope() [Test] public void InstallInvalidFont() { - var result = TestCommon.RunAICLICommand("font install", $"-m {TestCommon.GetTestDataFile(@"Manifests\TestInvalidFont.yaml")} --scope Machine"); + var result = TestCommon.RunAICLICommand("install", "AppInstallerTest.TestInvalidFont"); Assert.AreEqual(Constants.ErrorCode.ERROR_FONT_FILE_NOT_SUPPORTED, result.ExitCode); Assert.True(result.StdOut.Contains("The font file is not supported and cannot be installed.")); }