Sha256: 5dea873f9bc937b6e97f157f6833e67dfd8dbb9bee9fade56548f7500bcfcdd4

Contents?: true

Size: 681 Bytes

Versions: 14

Compression:

Stored size: 681 Bytes

Contents

When /^(?:|I )check ext checkbox "([^"]*)"$/ do |field|
  page.driver.browser.execute_script <<-JS
    var checkbox = Ext.ComponentQuery.query("checkboxfield[fieldLabel='#{field}']")[0];
    checkbox = checkbox || Ext.ComponentQuery.query("checkboxfield[boxLabel='#{field}']")[0];
    checkbox.setValue(true);
  JS
end

Then /^ext "([^"]*)" checkbox should(| not) be checked$/ do |name, arg|
  page.driver.browser.execute_script(<<-JS).should == arg.eql?("")
    var checkbox = Ext.ComponentQuery.query('checkboxfield[boxLabel="#{name}"]')[0];
    checkbox = checkbox || Ext.ComponentQuery.query('checkboxfield[fieldLabel="#{name}"]')[0];

    return checkbox.getValue();
  JS
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.8.3 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.8.2 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.8.1 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.8.0 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.7.7 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.7.6 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.7.5 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.7.4 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.7.3 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.7.2 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.7.1 test/basepack_test_app/features/step_definitions/ext_steps.rb
netzke-basepack-0.7.0 test/rails_app/features/step_definitions/ext_steps.rb