Skip to content

Commit 84b964f

Browse files
remove the workaround from PR #15396
`aspire add redis --version 13.1.2` will not prompt for a version in this E2E CLI test
1 parent 340ac79 commit 84b964f

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

tests/Aspire.Cli.EndToEnd.Tests/CentralPackageManagementTests.cs

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -170,33 +170,8 @@ public async Task AspireAddPackageVersionToDirectoryPackagesProps()
170170
</Project>
171171
""");
172172

173-
var waitingForVersionSelection = new CellPatternSearcher()
174-
.Find("Select a version of");
175-
var versionSelectionShown = false;
176-
177-
await auto.TypeAsync("aspire add Aspire.Hosting.Redis");
173+
await auto.TypeAsync("aspire add Aspire.Hosting.Redis --version 13.1.2");
178174
await auto.EnterAsync();
179-
await auto.WaitUntilAsync(s =>
180-
{
181-
if (waitingForVersionSelection.Search(s).Count > 0)
182-
{
183-
versionSelectionShown = true;
184-
return true;
185-
}
186-
187-
var successPromptSearcher = new CellPatternSearcher()
188-
.FindPattern(counter.Value.ToString())
189-
.RightText(" OK] $ ");
190-
191-
return successPromptSearcher.Search(s).Count > 0;
192-
}, timeout: TimeSpan.FromSeconds(180), description: "version selection prompt or success prompt");
193-
194-
if (versionSelectionShown)
195-
{
196-
// PR hives can surface multiple channels in CI. Accept the default implicit-channel version
197-
// so this test validates CPM behavior without pinning a specific package version.
198-
await auto.EnterAsync();
199-
}
200175

201176
await auto.WaitForSuccessPromptAsync(counter);
202177

0 commit comments

Comments
 (0)