Cleanup Qsupplier
This commit is contained in:
@@ -21,6 +21,10 @@ step "the user has an active list with a/an :order_status order" do |order_statu
|
||||
end
|
||||
end
|
||||
|
||||
step "the list changes to another table" do
|
||||
@list.move_to_table! @other_table
|
||||
end
|
||||
|
||||
step "the list should be marked as closed" do
|
||||
@list.reload
|
||||
@list.state.should == 'closed'
|
||||
|
||||
@@ -16,3 +16,7 @@ end
|
||||
step "the other user does not see order buttons" do
|
||||
page.should_not have_selector '.order-product-button'
|
||||
end
|
||||
|
||||
step "there is another table in the section" do
|
||||
@other_table = create :table, number: 126, section: @section, supplier: @supplier
|
||||
end
|
||||
|
||||
@@ -131,7 +131,7 @@ step "I click on the section main board section jumper" do
|
||||
end
|
||||
|
||||
step "the active list changes to another table in another section" do
|
||||
@list.move_to_table! @other_table
|
||||
step "the list changes to another table"
|
||||
end
|
||||
|
||||
step "the supplier main board table number should be updated to the new table number" do
|
||||
|
||||
@@ -132,3 +132,13 @@ end
|
||||
step "the supplier table actions of the new list should be visible" do
|
||||
page.should have_selector ".section-table-#{@table.id} .table-actions .close-list-button"
|
||||
end
|
||||
|
||||
step "the list should be linked to the original table in the section view" do
|
||||
step "the section table should be marked as having an active order"
|
||||
end
|
||||
|
||||
step "the list should be linked to the other table in the section view" do
|
||||
table = page.find(".section-table-#{@other_table.id}")
|
||||
table['class'].should include 'active_order'
|
||||
table['class'].should include 'occupied'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user