Everything is green

This commit is contained in:
2014-08-15 16:53:36 +02:00
parent 957ea02b5d
commit 3b5d411a89
14 changed files with 76 additions and 62 deletions
@@ -67,15 +67,15 @@ end
step "the new order on a table in another section should be present in the supplier dashboard" do
el = find(".order-row-#{@new_order.id}")
el.find('.table_number').text.should == @new_table.number.to_s
el.find('.section_title').text.should == @new_section.title
el.find('.table_number').text.should == @other_table.number.to_s
el.find('.section_title').text.should == @other_section.title
end
step "the new list should appear in the supplier dashboard" do
el = find(".list-row-#{@new_list.id}")
el.find('.total_list_amount').text.should =~ /6.66/
el.find('.section_title').text.should == 'Terrace'
el.find('.table_number').text.should == @new_table.number.to_s
el.find('.section_title').text.should == @other_section.title
el.find('.table_number').text.should == @other_table.number.to_s
end
step "I click on the close list button in the supplier dashboard" do
@@ -114,8 +114,8 @@ step "I select the section in the supplier dashboard" do
find(%|.section_selector option[value="#{@section.id}"]|).select_option
end
step "I select the new section in the supplier dashboard" do
find(%|.section_selector option[value="#{@new_section.id}"]|).select_option
step "I select the other section in the supplier dashboard" do
find(%|.section_selector option[value="#{@other_section.id}"]|).select_option
end
step "I reset the section selector in the supplier dashboard" do