Skip to content

fix: replace external placeholder images to fix flaky Panel/BackImageUrl test#540

Merged
csharpfritz merged 1 commit intoFritzAndFriends:devfrom
csharpfritz:bugfix/flaky-panel-backimageurl-test
Apr 20, 2026
Merged

fix: replace external placeholder images to fix flaky Panel/BackImageUrl test#540
csharpfritz merged 1 commit intoFritzAndFriends:devfrom
csharpfritz:bugfix/flaky-panel-backimageurl-test

Conversation

@csharpfritz
Copy link
Copy Markdown
Collaborator

Summary

The Panel/BackImageUrl sample page was loading images from \https://via.placeholder.com\, an external service that can be slow, rate-limited, or unreachable in CI environments. This caused the Playwright integration test to timeout waiting for
etworkidle\ (30s).

Changes

  • BackImageUrl.razor replaced external \�ia.placeholder.com\ URLs with local SVG placeholders (/img/placeholder-600x200.svg\ and /img/placeholder-400x200.svg)
  • placeholder-600x200.svg new local SVG placeholder (reuses existing convention from /img/\ folder)
  • Code samples in <pre>\ blocks still show generic external URLs for documentation purposes

Root Cause

\VerifyPageLoadsWithoutErrors\ uses \WaitUntilState.NetworkIdle\ with a 30s timeout. External image requests that hang or retry prevent the page from reaching network idle, causing flaky timeouts in CI.

Verified

  • Page renders correctly with local SVG backgrounds
  • No external network calls on page load
  • Existing placeholder SVG convention reused (/img/placeholder-{W}x{H}.svg)

The Panel/BackImageUrl sample page was loading images from
https://via.placeholder.com which could be slow or unreachable in CI,
causing the Playwright integration test to timeout waiting for
networkidle (30s). Replace with local SVG placeholders that are
served instantly from the app's wwwroot.

Fixes flaky test: EditorControl_Loads_WithoutErrors(path: /ControlSamples/Panel/BackImageUrl)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@csharpfritz csharpfritz merged commit a4d04d2 into FritzAndFriends:dev Apr 20, 2026
4 checks passed
@csharpfritz csharpfritz deleted the bugfix/flaky-panel-backimageurl-test branch April 20, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant