Skip to content

Anchor links don't select the targeted test on load #422

Description

@peitschie

👓 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 reqnroll/Reqnroll#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

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions