Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html report wont open some scenario details but opens others #86

Closed
shaneobrien20 opened this issue Jul 28, 2016 · 3 comments
Closed

Html report wont open some scenario details but opens others #86

shaneobrien20 opened this issue Jul 28, 2016 · 3 comments

Comments

@shaneobrien20
Copy link

Hey guys,

Found an issue where if you click on the feature in the html report it expands, but if you click on the scenario under it nothing happens. Found that this only happens for some features.

After some digging i found that this only happens when you have quite a large amount of features, but also quite a large amount of scenarios under a feature. The specific issue is in relation to the id used to target the div. It uses a system like this:

feature 2 and scenario 22 would be represented by #collapseScenario222
The issue rears its head if you also have 22 features, and then 2 scenarios under feature 22, its still represented by #collapseScenario222. This obviously causes problems...

I managed to fix this very easily by separating the feature number from the scenario number like so: #collapseScenario2_22 and #collapseScenario22_2.

The fix needs to be in the template files. I am using bootstrap so i changed all instances of <%= featureIndex %><%= scenarioIndex %> in 'templates/bootstrap/features.tmpl' to <%= featureIndex %>_<%= scenarioIndex %>. I guess you could just do the same for the other feature files?

Seems to work well for me anyway. Thought someone involved in this project would like to know and that it might help others.

Thanks guys, great project.
Shane

@gkushang
Copy link
Collaborator

Hey @shaneobrien20 that is great catch! Nice explanation too, definitely helps the community. Will plan to fix in the html-reporter. Thanks!

@shaneobrien20
Copy link
Author

No problem guys keep up the good work.

On 28 Jul 2016, at 16:50, Kushang Gajjar [email protected] wrote:

Hey @shaneobrien20 https://github.com/shaneobrien20 that is great catch! Nice explanation too, definitely helps the community. Will plan to fix in the html-reporter https://www.npmjs.com/package/cucumber-html-reporter. Thanks!


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #86 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AS6rN3kbVRIXEILloOvajmPwhaZlHJCBks5qaM-1gaJpZM4JXPq9.

@gkushang
Copy link
Collaborator

fixed and released [email protected]. Please do the clean install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants