37 references to PlaywrightInstallStatus
aspire (20)
Agents\Playwright\PlaywrightCliInstaller.cs (16)
88public async Task<(PlaywrightInstallStatus Status, string? Message)> InstallSelectedAsync(IReadOnlySet<string> selectedSkillDirectories, CancellationToken cancellationToken) 129public async Task<(PlaywrightInstallStatus Status, string? Message)> InstallAsync(string repoRoot, IReadOnlySet<string> selectedSkillDirectories, CancellationToken cancellationToken) 136private async Task<(PlaywrightInstallStatus Status, string? Message)> InstallCoreAsync(string repoRoot, IReadOnlySet<string> selectedSkillDirectories, CancellationToken cancellationToken) 142return (PlaywrightInstallStatus.Skipped, null); 159return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_InvalidVersionOverride, VersionOverrideKey, versionOverride)); 175return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToResolvePackage, NpmPackageInfo.FormatPackageSpecifier(PackageName, effectiveRange))); 224return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToDownload, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version))); 253return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_ProvenanceVerificationFailed, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version), provenanceResult.Outcome)); 269return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToInstallGlobally, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version))); 297private async Task<(PlaywrightInstallStatus Status, string? Message)> InstallAndMirrorSkillsAsync( 307return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles); 351private (PlaywrightInstallStatus Status, string? Message) MirrorSkillFiles(string repoRoot, IReadOnlySet<string> selectedSkillDirectories, HashSet<string> preExistingLocations) 362return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles); 424return (PlaywrightInstallStatus.Installed, null); 428? (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToMirrorSkillFiles) 429: (PlaywrightInstallStatus.InstalledWithWarnings, AgentCommandStrings.PlaywrightCliInstaller_InstalledWithMirrorWarnings);
Commands\AgentInitCommand.cs (4)
668case PlaywrightInstallStatus.Installed: 671case PlaywrightInstallStatus.InstalledWithWarnings: 674case PlaywrightInstallStatus.Failed: 678case PlaywrightInstallStatus.Skipped:
Aspire.Cli.Tests (17)
Agents\PlaywrightCliInstallerTests.cs (17)
77Assert.Equal(PlaywrightInstallStatus.Installed, status); 112Assert.Equal(PlaywrightInstallStatus.Failed, status); 148Assert.Equal(successfulDestination ? PlaywrightInstallStatus.InstalledWithWarnings : PlaywrightInstallStatus.Failed, status); 186Assert.Equal(PlaywrightInstallStatus.Failed, status); 231Assert.Equal(PlaywrightInstallStatus.Installed, status); 268Assert.Equal(PlaywrightInstallStatus.Failed, status); 301Assert.Equal(PlaywrightInstallStatus.Installed, status); 371Assert.Equal(PlaywrightInstallStatus.Installed, status); 402Assert.Equal(PlaywrightInstallStatus.Failed, status); 444Assert.Equal(PlaywrightInstallStatus.Installed, status); 489Assert.Equal(PlaywrightInstallStatus.Installed, status); 532Assert.Equal(PlaywrightInstallStatus.Failed, status); 580Assert.Equal(PlaywrightInstallStatus.Installed, status); 676Assert.Equal(PlaywrightInstallStatus.Failed, status); 722Assert.Equal(PlaywrightInstallStatus.Installed, status); 803Assert.Equal(PlaywrightInstallStatus.Failed, status);