Sha256: 1b82d2cf148ef80e93f9ac47c158f45ee3a55f9723f3e1ae3daa7bc47b5eb145

Contents?: true

Size: 644 Bytes

Versions: 8

Compression:

Stored size: 644 Bytes

Contents

When /^I expand the tree row "([^\"]*)"$/ do |row|
  item = top_tree.items.detect {|item| item.getText == row }
  viewer = Redcar.app.focussed_window.treebook.trees.last.controller.viewer
  node = viewer.getViewerRowFromItem(item).getElement
  viewer.expandToLevel(node, 1)
end

Then /^I should (not )?see "([^\"]*)" in the tree$/ do |bool, rows|
  bool = !bool
  matcher = bool ? be_true : be_false
  rows = rows.split(",").map {|r| r.strip}
  rows.each do |row|
    on_top = top_tree.item_texts.include?(row)
    on_2 = top_tree.items.any? {|item| item.getItems.to_a.any? {|sub_item| sub_item.getText == row } }
    on_top or on_2
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
redcar-0.3.5 plugins/application/features/step_definitions/tree_steps.rb
redcar-0.3.4.3 plugins/application/features/step_definitions/tree_steps.rb
redcar-0.3.4.2 plugins/application/features/step_definitions/tree_steps.rb
redcar-0.3.4.1 plugins/application/features/step_definitions/tree_steps.rb
redcar-0.3.4 plugins/application/features/step_definitions/tree_steps.rb
redcar-0.3.3 plugins/application/features/step_definitions/tree_steps.rb
redcar-0.3.2dev plugins/application/features/step_definitions/tree_steps.rb
redcar-0.3.1dev plugins/application/features/step_definitions/tree_steps.rb