12 references to Text
Infrastructure.Tests (12)
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (12)
407
Assert.Equal("Source run: [workflow run](https://github.com/dotnet/aspire/actions/runs/123)\n\n", rawEvent.
Text
);
499
SummaryEvent rawEvent = Assert.Single(result.Events, e => e.Type == "raw" && e.
Text
is not null && e.
Text
.Contains("Failed attempt:"));
500
Assert.Contains("Failed attempt: [workflow run attempt 1](https://github.com/dotnet/aspire/actions/runs/123/attempts/1)", rawEvent.
Text
);
501
Assert.Contains("Rerun attempt: [workflow run attempt 2](https://github.com/dotnet/aspire/actions/runs/123/attempts/2)", rawEvent.
Text
);
511
SummaryEvent commentEvent = Assert.Single(result.Events, e => e.Type == "raw" && e.
Text
is not null && e.
Text
.Contains("Posted rerun details to #15110."));
512
Assert.Contains("Posted rerun details to #15110.", commentEvent.
Text
);
547
SummaryEvent skippedHeading = Assert.Single(result.Events, e => e.Type == "heading" && e.
Text
== "Automatic rerun skipped");
550
SummaryEvent skippedRaw = Assert.Single(result.Events, e => e.Type == "raw" && e.
Text
is not null && e.
Text
.Contains("All associated pull requests are closed."));
551
Assert.Contains("All associated pull requests are closed. No jobs were rerun.", skippedRaw.
Text
);