Sha256: 57bca8fd577e713c7e8d6d68d56d7324d2c7c439e086068791aedbb6bf3d263c
Contents?: true
Size: 1.7 KB
Versions: 3
Compression:
Stored size: 1.7 KB
Contents
<% @scenario.scenarios.each_with_index do |scenario,example_index| %> <div id="<%= "#{@id}Example#{example_index + 1}Steps" %>" style="display: none;" class="steps"> <% scenario.steps.each_with_index do |step,index| %> <% @step = step %> <div <%= "id='#{@id}Example#{example_index + 1}Step#{index}'" %> class="step <%= (index + 1) % 2 == 0 ? 'even' : 'odd' %>"> <span class="predicate"><%= step.keyword %></span> <% if step.definition %> <span class="defined"> <%= highlight_matches(step) %> <div class="details"> <a href="<%= url_for step.definition %>"><div class="valid"> </div></a> </div> </span> <% else %> <span class="undefined"> <%= h step.value %> <div class="details"> <a href="<%= url_for YARD::CodeObjects::Cucumber::CUCUMBER_STEPTRANSFORM_NAMESPACE %>#undefined_steps"> <div class="invalid"> </div> </a> </div> </span> <% end %> </div> <%= erb(:table) if step.has_table? %> <%= erb(:pystring) if step.has_text? %> <% end %> </div> <% end %> <div class="outline"> <div class="keyword"> <%= h @scenario.example_keyword %> </div> <table> <thead> <tr> <% @scenario.example_headers.each_with_index do |header,header_index| %> <th><%= h(header) %></th> <% end %> </tr> </thead> <% @scenario.example_data.each_with_index do |row,row_index| %> <tr class="<%= (row_index + 1) % 2 == 0 ? 'even' : 'odd' %>" onclick="<%= "toggleScenarioExample('#{@id}',#{row_index + 1});" %>"> <% row.each_with_index do |column,column_index| %> <td><%= h(column.to_s.strip) %></td> <% end %> </tr> <% end %> </table> </div>
Version data entries
3 entries across 3 versions & 1 rubygems