Anchor links don't select the targeted test on load

Aberta
#422 0 comentários 0 reações 1 responsável Ver no GitHub

@davidjgoss já está trabalhando nisso.

Desde 2/2/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

: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

Linguagem predominante
TypeScript
Estrelas
39
Forks
13
Merge médio
1d 10h
PRs com merge (30d)
6

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de cucumber/react-components

Todas as issues de cucumber/react-components

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.