Sha256: fb1ef8db2816609f242800b4415c6a4391d1e8662bb2ce95e4f9f45c2e383a1f
Contents?: true
Size: 902 Bytes
Versions: 35
Compression:
Stored size: 902 Bytes
Contents
def filter_dialog dialog(Redcar::ApplicationSWT::FilterListDialogController::FilterListDialog) end def filter_dialog_items filter_dialog.list.get_items.to_a end Then /^there should be a filter dialog open$/ do filter_dialog.should_not be_nil end Then /^there should be no filter dialog open$/ do filter_dialog.should be_nil end When /^I set the filter to "(.*)"$/ do |text| filter_dialog.text.set_text(text) end When /^I select in the filter dialog$/ do filter_dialog.controller.selected end When /^I wait "(.*)" seconds?$/ do |time| Cucumber::Ast::StepInvocation.wait_time = time.to_f end Then /^the filter dialog should have (no|\d+) entr(?:y|ies)$/ do |num| num = (num == "no" ? 0 : num.to_i) filter_dialog_items.length.should == num end Then /^I should see "(.*)" at (\d+) the filter dialog$/ do |text, pos| pos = pos.to_i filter_dialog_items[pos].should == text end
Version data entries
35 entries across 35 versions & 1 rubygems