38 references to PlaywrightInstallStatus
aspire (20)
Agents\Playwright\PlaywrightCliInstaller.cs (16)
88public async Task<(PlaywrightInstallStatus Status, string? Message, IReadOnlyList<string> InstalledSkillDirectories)> InstallSelectedAsync(IReadOnlySet<string> selectedSkillDirectories, CancellationToken cancellationToken) 129public async Task<(PlaywrightInstallStatus Status, string? Message, IReadOnlyList<string> InstalledSkillDirectories)> InstallAsync(string repoRoot, IReadOnlySet<string> selectedSkillDirectories, CancellationToken cancellationToken) 136private async Task<(PlaywrightInstallStatus Status, string? Message, IReadOnlyList<string> InstalledSkillDirectories)> 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, IReadOnlyList<string> InstalledSkillDirectories)> InstallAndMirrorSkillsAsync( 307return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles, []); 351private (PlaywrightInstallStatus Status, string? Message, IReadOnlyList<string> InstalledSkillDirectories) MirrorSkillFiles(string repoRoot, IReadOnlySet<string> selectedSkillDirectories, HashSet<string> preExistingLocations) 362return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles, []); 425return (PlaywrightInstallStatus.Installed, null, installedSkillDirectories); 429? (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToMirrorSkillFiles, installedSkillDirectories) 430: (PlaywrightInstallStatus.InstalledWithWarnings, AgentCommandStrings.PlaywrightCliInstaller_InstalledWithMirrorWarnings, installedSkillDirectories);
Commands\AgentInitCommand.cs (4)
623case PlaywrightInstallStatus.Installed: 626case PlaywrightInstallStatus.InstalledWithWarnings: 629case PlaywrightInstallStatus.Failed: 633case PlaywrightInstallStatus.Skipped:
Aspire.Cli.Tests (18)
Agents\PlaywrightCliInstallerTests.cs (18)
77Assert.Equal(PlaywrightInstallStatus.Installed, status); 113Assert.Equal(PlaywrightInstallStatus.Failed, status); 150Assert.Equal(successfulDestination ? PlaywrightInstallStatus.InstalledWithWarnings : PlaywrightInstallStatus.Failed, status); 193Assert.Equal(PlaywrightInstallStatus.Failed, status); 239Assert.Equal(PlaywrightInstallStatus.Installed, status); 276Assert.Equal(PlaywrightInstallStatus.Failed, status); 309Assert.Equal(PlaywrightInstallStatus.Installed, status); 380Assert.Equal(PlaywrightInstallStatus.Installed, status); 411Assert.Equal(PlaywrightInstallStatus.Failed, status); 453Assert.Equal(PlaywrightInstallStatus.Installed, status); 498Assert.Equal(PlaywrightInstallStatus.Installed, status); 541Assert.Equal(PlaywrightInstallStatus.Failed, status); 589Assert.Equal(PlaywrightInstallStatus.Installed, status); 685Assert.Equal(PlaywrightInstallStatus.Failed, status); 731Assert.Equal(PlaywrightInstallStatus.Installed, status); 812Assert.Equal(PlaywrightInstallStatus.Failed, status); 896Assert.Equal(PlaywrightInstallStatus.Installed, status);