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

Version Path
redcar-0.11 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.11.0dev plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.10 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.9.2 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.9.1 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.9.0 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.8.1 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.8 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.7 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.6.1 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.6 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.6.1dev plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.5.1 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.5 plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.5.6dev plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.5.5dev plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.5.4dev plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.5.3dev plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.5.2dev plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-0.5.1dev plugins/application/features/step_definitions/filter_list_dialog_steps.rb