Avoid using xpath in specs

Using xpath is usually harder to read and more fragile.
This commit is contained in:
Javi Martín
2018-09-27 17:44:03 +02:00
parent 959270b0bb
commit 0945f046a3
2 changed files with 14 additions and 26 deletions

View File

@@ -3,7 +3,7 @@
<%= render 'shared/wide_order_selector', i18n_namespace: "admin.legislation.processes.proposals" %>
<table class="stack" id="proposals_table">
<table class="stack" id="legislation_proposals_list">
<thead>
<tr>
<th class="text-center"><%= t("admin.legislation.proposals.index.id") %></th>
@@ -15,7 +15,7 @@
<tbody>
<% proposals.each do |proposal| %>
<tr id="<%= dom_id(proposal) %>">
<tr id="<%= dom_id(proposal) %>" class="legislation_proposal">
<td class="text-center"><%= proposal.id %></td>
<td><%= proposal.title %></td>
<td class="text-center"><%= proposal.cached_votes_up %></td>