Refactor and implement order buttons on supplier list view
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user