Sha256: 8bd465e95b689885b9cd047b5f72e178af9ee42a9bee853e813f17cfcdbffff9

Contents?: true

Size: 1 KB

Versions: 16

Compression:

Stored size: 1 KB

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

Then /^I should not see "(.*)" in the filter dialog$/ do |text|
  filter_dialog_items.include?(text).should be_false
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
redcar-dev-0.12.17dev plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.16dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.15dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.14dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.13dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.12dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.11dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.10dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.9dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.8dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.7dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.6dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.4dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.3dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.1dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb
redcar-dev-0.12.0dev-java plugins/application/features/step_definitions/filter_list_dialog_steps.rb