-{{/products}}
diff --git a/app/views/suppliers/sections/table_actions.html.slim b/app/views/suppliers/sections/table_actions.html.slim
index 8bd2f440..63ecd82b 100644
--- a/app/views/suppliers/sections/table_actions.html.slim
+++ b/app/views/suppliers/sections/table_actions.html.slim
@@ -3,7 +3,7 @@ ul#table-actions-list
- if @list
- if @list.needs_help?
li
- button.btn.btn-info.btn-small class="of-list-#{@list.id}" id="list-is-helped-button-#{@list.id}" onclick="Qsupplier.mark_list_as_helped('#{@list.id}')" data-t="list.is_helped_button"
+ button.btn.btn-info.btn-small class="of-list-#{@list.id}" id="list-is-helped-button-#{@list.id}" onclick="Qsupplier.mark-list-as-helped-button('#{@list.id}')" data-t="list.is_helped_button"
button.btn.btn-warning.btn-small class="of-list-#{@list.id}" onclick="Qsupplier.close_list('#{@list.id}')" data-t="list.close_list"
li
a data-t='section.tables_view.table_actions.got_to_table' href=suppliers_table_path(@table)
diff --git a/spec/acceptance/suppliers/dashboard.feature b/spec/acceptance/suppliers/dashboard.feature
index 1d5fba54..90d61a13 100644
--- a/spec/acceptance/suppliers/dashboard.feature
+++ b/spec/acceptance/suppliers/dashboard.feature
@@ -11,13 +11,13 @@ Feature: Supplier main board
And the supplier dashboard should display the active order
#When I click on translation 'supplier.order.being_processed'
- When I click on selector '.active-orders-table .mark_order_active'
+ When I click on selector '.active-orders-table .mark-order-active-button'
# waiting here only needed in old style implementation
And I wait 1 second
Then the supplier order row should be marked as active
#When I click on translation 'supplier.order.being_served'
- When I click on selector '.active-orders-table .mark_order_delivered'
+ When I click on selector '.active-orders-table .mark-order-delivered-button'
And I wait 1 second
Then the order in the supplier dashboard should not be displayed anymore
And the order should be marked as delivered
diff --git a/spec/acceptance_steps/suppliers/dashboard_steps.rb b/spec/acceptance_steps/suppliers/dashboard_steps.rb
index c03fae20..4935370a 100644
--- a/spec/acceptance_steps/suppliers/dashboard_steps.rb
+++ b/spec/acceptance_steps/suppliers/dashboard_steps.rb
@@ -83,7 +83,7 @@ step "I click on the close list button in the supplier dashboard" do
end
step "I click on the mark list as helped button in the supplier dashboard" do
- find(".list-row-#{@list.id} .mark_list_as_helped").click
+ find(".list-row-#{@list.id} .mark-list-as-helped-button").click
end
step "I should see the list and the new list" do
@@ -144,7 +144,7 @@ end
# Marking order as wrong
step "the supplier marks the order as wrong in the main board view" do
- find(".order-row-#{@order.id} .remove-order").click
+ find(".order-row-#{@order.id} .mark-order-cancelled-button").click
end
step "the supplier main board order should not be visible anymore" do
diff --git a/spec/acceptance_steps/suppliers/section_view_steps.rb b/spec/acceptance_steps/suppliers/section_view_steps.rb
index 927e62c5..5fe77320 100644
--- a/spec/acceptance_steps/suppliers/section_view_steps.rb
+++ b/spec/acceptance_steps/suppliers/section_view_steps.rb
@@ -49,12 +49,12 @@ end
step "I click on the mark list as helped in the section table popup as supplier" do
# btn = page.find(".list-is-helped-button-#{@list.id}")
- page.find(".section-table-#{@table.id} .mark_list_as_helped").click
+ page.find(".section-table-#{@table.id} .mark-list-as-helped-button").click
# btn.click
end
step "the section table popup should no longer have the mark list as helped button" do
- page.should_not have_selector(".section-table-#{@table.id} .mark_list_as_helped")
+ page.should_not have_selector(".section-table-#{@table.id} .mark-list-as-helped-button")
end
step "I click on the close list button in the section table table popup" do