Sha256: e0f33ec3ac8e6859ce16508e5f528741387ecd3548c0fd000d4030163bdc94a4

Contents?: true

Size: 854 Bytes

Versions: 37

Compression:

Stored size: 854 Bytes

Contents

# modify an editable element
Given /^the editable element "([^"]*)" in the "([^"]*)" page with the content "([^"]*)"$/ do |slug, page_slug, content|
  page = @site.pages.where(:slug => page_slug).first
  page.find_editable_element(nil, slug).content = content
  page.save!
end

# modify an editable element
Given /^the editable element "([^"]*)" for the "([^"]*)" block in the "([^"]*)" page with the content "([^"]*)"$/ do |slug, block, page_slug, content|
  page = @site.pages.where(:slug => page_slug).first
  page.find_editable_element(block, slug).content = content
  page.save!
end

When /^I type the content "([^"]*)" into the first editable field$/ do |content|
  page.execute_script %{
    $(document).ready(function() {
      editable = GENTICS.Aloha.editables[0];
      editable.obj.text('#{content}');
      editable.blur();
    });
  }
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
locomotivecms-3.0.0.rc3 features/step_definitions/editable_elements_steps.rb
locomotivecms-3.0.0.rc2 features/step_definitions/editable_elements_steps.rb
locomotivecms-3.0.0.rc1 features/step_definitions/editable_elements_steps.rb
locomotivecms-3.0.0.pre.beta.1 features/step_definitions/editable_elements_steps.rb
locomotivecms-3.0.0.pre.alpha.3 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.7 features/step_definitions/editable_elements_steps.rb
locomotivecms-3.0.0.pre.alpha.2 features/step_definitions/editable_elements_steps.rb
locomotivecms-3.0.0.pre.alpha features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.6 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.6.rc2 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.6.rc1 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.5 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.4 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.3 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.2 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.1 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.0 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.0.rc3 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.0.rc2 features/step_definitions/editable_elements_steps.rb
locomotive_cms-2.5.0.rc1 features/step_definitions/editable_elements_steps.rb