Refactor and implement order buttons on supplier list view

This commit is contained in:
2015-02-22 10:03:53 +01:00
parent 0ccfe07e13
commit 755690131c
24 changed files with 40 additions and 171 deletions
@@ -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
@@ -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