-
Notifications
You must be signed in to change notification settings - Fork 36
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
Comments
Hey @shaneobrien20 that is great catch! Nice explanation too, definitely helps the community. Will plan to fix in the html-reporter. Thanks! |
No problem guys keep up the good work.
|
fixed and released |
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
The text was updated successfully, but these errors were encountered: