Sha256: 8241707a3e08f91385a645e30fd67b172e24fa1a8ff77ddfe65fd130642222b8

Contents?: true

Size: 339 Bytes

Versions: 6

Compression:

Stored size: 339 Bytes

Contents

When /^I expand "([^"]*)"$/ do |arg1|
  page.driver.browser.execute_script <<-JS
    var components = [];
    for (var cmp in Netzke.page) { components.push(cmp); }
    var accordion = Netzke.page[components[0]];
    var panelToExpand = accordion.items.find(function(i){return i.title == '#{arg1}';});
    panelToExpand.expand();
  JS
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
netzke-basepack-0.6.5 test/rails_app/features/step_definitions/accordion_steps.rb
netzke-basepack-0.6.4 features/step_definitions/accordion_steps.rb
netzke-basepack-0.6.3 features/step_definitions/accordion_steps.rb
netzke-basepack-0.6.2 features/step_definitions/accordion_steps.rb
netzke-basepack-0.6.1 features/step_definitions/accordion_steps.rb
netzke-basepack-0.6.0 features/step_definitions/accordion_steps.rb