Skip to content

Add a browser journey for the legacy section picker #4969

Open

Description

@reakaleek

A browser journey should open the legacy section picker, choose a section, and check that the page changes.

What is getting in your way

The picker (#pages-dropdown with its #pages-dropdown-menu popover) renders only where the navigation has several top-level sections, which in practice means the assembler site with navigation-preview off. The isolated docs/ site never renders it. The only test is LegacySectionDropdown_OpensAMenuOfTheTopLevelSections in tests/Navigation.Tests/Rendering/TocTreeRenderingTests.cs, which checks the markup. It still passes if floating.ts never places the popover or if choosing a section fails to navigate.

Pull request #4968 moved this control onto a popover and raised the gap in review. The journey could not be written there, because no environment that runs that branch renders the picker. Prod and edge still serve the old markup.

What would you like instead

A Synthetics journey under tests/Elastic.Documentation.Journeys.Tests/journeys/navigation/synth/, next to main-paths.journey, that runs against an assembler site with navigation-preview off. It should:

  • click the chevron button (button[popovertarget='pages-dropdown-menu']) and check that aria-expanded is true and the section links are visible
  • press Escape and check that the links hide
  • open the menu again, click a section other than the current one, and wait for the new URL

Write it once the pull request is deployed to edge, so it can run with mise run journeys:synth edge before it is merged.

Anything else

Related: #3685 covers making the same control an accessible disclosure. The pull request addresses most of it.

Activity

  1. rahulsjha commented on Nov 21, 2026

    @rahulsjha

    Hi @reakaleek, I'd like to work on this. I'd add a browser journey that opens the legacy section picker (#pages-dropdown), chooses a section and checks that the page changes, run against a docset with several top-level sections. Okay if I pick it up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions