Anchor links don't select the targeted test on load

Đang mở
#422 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@davidjgoss đang làm issue này rồi.

Từ ngày 2/2/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

: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

Ngôn ngữ chính
TypeScript
Star
39
Fork
13
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cucumber/react-components

Tất cả issue của cucumber/react-components

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.