27 references to PlaywrightInstallStatus
aspire (16)
Agents\Playwright\PlaywrightCliInstaller.cs (12)
109public async Task<(PlaywrightInstallStatus Status, string? Message)> InstallAsync(string repoRoot, IReadOnlySet<string> selectedSkillDirectories, CancellationToken cancellationToken) 116private async Task<(PlaywrightInstallStatus Status, string? Message)> InstallCoreAsync(string repoRoot, IReadOnlySet<string> selectedSkillDirectories, CancellationToken cancellationToken) 122return (PlaywrightInstallStatus.Skipped, null); 139return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_InvalidVersionOverride, VersionOverrideKey, versionOverride)); 155return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToResolvePackage, NpmPackageInfo.FormatPackageSpecifier(PackageName, effectiveRange))); 204return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToDownload, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version))); 233return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_ProvenanceVerificationFailed, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version), provenanceResult.Outcome)); 249return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToInstallGlobally, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version))); 277private async Task<(PlaywrightInstallStatus Status, string? Message)> InstallAndMirrorSkillsAsync( 287return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles); 297return (PlaywrightInstallStatus.InstalledWithWarnings, AgentCommandStrings.PlaywrightCliInstaller_InstalledWithMirrorWarnings); 300return (PlaywrightInstallStatus.Installed, null);
Commands\AgentInitCommand.cs (4)
413case PlaywrightInstallStatus.Installed: 416case PlaywrightInstallStatus.InstalledWithWarnings: 419case PlaywrightInstallStatus.Failed: 423case PlaywrightInstallStatus.Skipped:
Aspire.Cli.Tests (11)
Agents\PlaywrightCliInstallerTests.cs (11)
41Assert.Equal(PlaywrightInstallStatus.Failed, status); 74Assert.Equal(PlaywrightInstallStatus.Installed, status); 144Assert.Equal(PlaywrightInstallStatus.Installed, status); 175Assert.Equal(PlaywrightInstallStatus.Failed, status); 217Assert.Equal(PlaywrightInstallStatus.Installed, status); 262Assert.Equal(PlaywrightInstallStatus.Installed, status); 305Assert.Equal(PlaywrightInstallStatus.Failed, status); 353Assert.Equal(PlaywrightInstallStatus.Installed, status); 449Assert.Equal(PlaywrightInstallStatus.Failed, status); 495Assert.Equal(PlaywrightInstallStatus.Installed, status); 576Assert.Equal(PlaywrightInstallStatus.Failed, status);