Skip to content

Update the search operation snapshot for the popover change - #4683

Merged
Mpdreamz merged 1 commit into
mainfrom
docs/builder-fix-failing-tests
Nov 4, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
docs/builder-fix-failing-tests

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Nov 4, 2026

Copy link
Copy Markdown
Member

Refreshes one API Explorer snapshot so Elastic.ApiExplorer.Tests passes on main again.

Affects: Internals only

Why

#4311 sets additionalInfo to null in the applies-to popover when all lifecycles are negative. The snapshot added in #4654 still holds the old deployment text, so Render_SearchOperation_UsesOneH1ThenH2SectionsAndH3Nested fails on CI.

What

Snapshot

The verified HTML for the search operation now has "additionalInfo":null in the popover data. No product code changes.

Verify

dotnet test --project tests/Elastic.ApiExplorer.Tests

🤖 Generated with Claude Code

…hange

#4311 sets `additionalInfo` to null in the applies-to popover when all lifecycles are negative. The snapshot added in #4654 still held the old text, so the ApiExplorer test failed on main.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Mpdreamz
Mpdreamz requested a review from a team as a code owner November 4, 2026 15:12
@Mpdreamz Mpdreamz added the chore label Nov 4, 2026
@Mpdreamz
Mpdreamz requested a review from technige November 4, 2026 15:12
@Mpdreamz Mpdreamz added the chore label Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4683/

@Mpdreamz
Mpdreamz merged commit ef62260 into main Nov 4, 2026
48 checks passed
@Mpdreamz

Mpdreamz commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

Merged by heed (squash) because every merge rule held:

  • Green: every green rule holds
  • Reviewed after push: approved by @akira28 on abb6415
  • Quiet: nothing new for 15m
  • Gate checks: Analyze (actions), Analyze (csharp), Analyze (javascript-typescript), CodeQL, Libra passed
  • No hold label: none

@Mpdreamz
Mpdreamz deleted the docs/builder-fix-failing-tests branch November 4, 2026 15:37
akira28 added a commit that referenced this pull request Nov 4, 2026
The operation page snapshot included the data payload of its applicability popovers, which comes from the applicability feature and not from the heading structure the test is about. A change to the popover text in #4311 therefore failed the test and turned main red until #4683 updated the snapshot. The test now removes the popover-data attribute. The snapshot differs only in those two attributes. With the same one-word change to the popover text, the old test failed and the narrowed one passes, and a change to a heading in the page still fails it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
akira28 added a commit that referenced this pull request Nov 4, 2026
* Snapshot the response block rendering tests

Three tests in ResponsesBlockRenderingTests asserted on 37 substrings of the rendered response block. Each now compares the block to a snapshot and keeps the one or two assertions that state what the test protects. Before the assertions were deleted, each of the 37 was evaluated against the new output and all of them held. Three deliberate markup changes in the Razor partials each failed the converted tests. The block is a component fragment, so the snapshots hold no page chrome and stay small.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Leave the applicability popover data out of the operation page snapshot

The operation page snapshot included the data payload of its applicability popovers, which comes from the applicability feature and not from the heading structure the test is about. A change to the popover text in #4311 therefore failed the test and turned main red until #4683 updated the snapshot. The test now removes the popover-data attribute. The snapshot differs only in those two attributes. With the same one-word change to the popover text, the old test failed and the narrowed one passes, and a change to a heading in the page still fails it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants