Going back to wait x.x …works better

This commit is contained in:
Jamon Holmgren
2013-07-01 14:50:49 -07:00
parent 28edbaf8ad
commit 3deae749ac

View File

@@ -36,43 +36,44 @@ describe "ProMotion::TestTableScreen functionality" do
it "should delete the specified row from the table view on tap" do
@controller.tableView(@controller.tableView, numberOfRowsInSection:0).should == 6
tap("Delete the row below")
@controller.tableView(@controller.tableView, numberOfRowsInSection:0).should == 5
wait 0.3 do
@controller.tableView(@controller.tableView, numberOfRowsInSection:0).should == 5
end
end
it "should delete the specified row from the table view on tap with an animation" do
@controller.tableView(@controller.tableView, numberOfRowsInSection:0).should == 6
tap("Delete the row below with an animation")
@controller.tableView(@controller.tableView, numberOfRowsInSection:0).should == 5
wait 0.3 do
@controller.tableView(@controller.tableView, numberOfRowsInSection:0).should == 5
end
end
it "should call a method when the switch is flipped" do
@controller.scroll_to_bottom
wait_for_change @controller, :tap_counter do
tap "switch_1"
wait 0.3 do
@controller.tap_counter.should == 1
end
tap "switch_1"
end
it "should call the method with arguments when the switch is flipped and when the cell is tapped" do
@controller.scroll_to_bottom
tap "switch_3"
wait_for_change @controller, :tap_counter do
wait 0.3 do
@controller.tap_counter.should == 3
end
tap "Switch With Cell Tap, Switch Action And Parameters"
wait_for_change @controller, :tap_counter do
@controller.tap_counter.should == 13
tap "Switch With Cell Tap, Switch Action And Parameters"
wait 0.3 do
@controller.tap_counter.should == 13
end
end
end
it "should call the method with arguments when the switch is flipped" do
@controller.scroll_to_bottom
tap "switch_2"
wait_for_change @controller, :tap_counter do
wait 0.3 do
@controller.tap_counter.should == 3
end
end