Anchor links don't select the targeted test on load

Offen
#422 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@davidjgoss arbeitet bereits daran.

Seit 02.2.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

:bug: bug
👓 What did you see?

There is a link option available next to features and scenarios which when clicked update the URL to include an anchor.

Image

When opening this link in a new tab or window, the test report does not automatically scroll to the intended spot. Instead, the report stays at the top.

This was originally raised in https://github.com/reqnroll/Reqnroll/issues/1000

✅ What did you expect to see?

The report should scroll to the target link automatically. This allows these links to be sent to others as a quick way of navigating them to a particular feature or scenario within a report.

📦 Which tool/library version are you using?

I think it's v24.1.2.

This report is coming via Reqnroll 3.3.1, which uses Cucumber.HtmlFormatter 22.2.0.

🔬 How could we reproduce it?
  1. Generate a report that's more than a page, so a link heading appears in a place that requires scrolling
  2. Click on the link/anchor to add a target (i.e, a hash) to the url
  3. Copy the url and paste in a new browser tab/window

Observe that the new report does not scroll to the target link.

📚 Any additional context?

No response

Vorherrschende Sprache
TypeScript
Sterne
39
Forks
13
Ø Merge
1 T. 10 Std.
Gemergte PRs (30 T.)
6

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cucumber/react-components

Alle Issues in cucumber/react-components

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.