Skip to content

Commit 547c9aa

Browse files
Copilotradical
andauthored
Add unique 8-character GUID to screenshot filename in template tests (#10787)
* Initial plan * Add unique 8-character GUID to screenshot filename Co-authored-by: radical <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: radical <[email protected]>
1 parent bef725d commit 547c9aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Aspire.Templates.Tests/TemplateTestsBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ protected static async Task<ResourceRow[]> CheckDashboardHasResourcesAsync(Wrapp
163163
}
164164
catch
165165
{
166-
string screenshotPath = Path.Combine(logPath, "dashboard-fail.png");
166+
string screenshotPath = Path.Combine(logPath, $"dashboard-fail-{Guid.NewGuid().ToString()[..8]}.png");
167167
await dashboardPageWrapper.Page.ScreenshotAsync(new PageScreenshotOptions { Path = screenshotPath });
168168
testOutput.WriteLine($"Dashboard screenshot saved to {screenshotPath}");
169169
throw;

0 commit comments

Comments
 (0)