Sha256: 395c5dd22016e9d5ce880738e87f67ba2e4eba6e63fbff916e5c6d93f7b9fb7b

Contents?: true

Size: 740 Bytes

Versions: 37

Compression:

Stored size: 740 Bytes

Contents

require "rails_helper"
describe "the signin process", js: true do
  login_success

  it "create new tag" do
    admin_sign_in
    visit "#{cama_root_relative_path}/admin/post_type/2/post_tags"
    within("#new_post_tag") do
      fill_in 'post_tag_name', :with => 'Test tag'
      fill_in 'post_tag_slug', :with => 'test-tag'
    end
    click_button 'Submit'
    expect(page).to have_css('.alert-success')
  end

  it "create edit tag" do
    admin_sign_in
    visit "#{cama_root_relative_path}/admin/post_type/2/post_tags/#{get_tag_attr("id", "last")}/edit"
    within("#edit_post_tag") do
      fill_in 'post_tag_name', :with => 'Test tag update'
    end
    click_button 'Submit'
    expect(page).to have_css('.alert-success')
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
camaleon_cms-2.4.5.5 spec/features/tags_spec.rb
camaleon_cms-2.4.5.4 spec/features/tags_spec.rb
camaleon_cms-2.4.5.3 spec/features/tags_spec.rb
camaleon_cms-2.4.5.2 spec/features/tags_spec.rb
camaleon_cms-2.4.5.1 spec/features/tags_spec.rb
camaleon_cms-2.4.5 spec/features/tags_spec.rb
camaleon_cms-2.4.4.7 spec/features/tags_spec.rb
camaleon_cms-2.4.4.6 spec/features/tags_spec.rb
camaleon_cms-2.4.4.5 spec/features/tags_spec.rb
camaleon_cms-2.4.4.4 spec/features/tags_spec.rb
camaleon_cms-2.4.4.3 spec/features/tags_spec.rb
camaleon_cms-2.4.4.2 spec/features/tags_spec.rb
camaleon_cms-2.4.4.1 spec/features/tags_spec.rb
camaleon_cms-2.4.4 spec/features/tags_spec.rb
camaleon_cms-2.4.3.13 spec/features/tags_spec.rb
camaleon_cms-2.4.3.12 spec/features/tags_spec.rb
camaleon_cms-2.4.3.11 spec/features/tags_spec.rb
camaleon_cms-2.4.3.10 spec/features/tags_spec.rb
camaleon_cms-2.4.3.9 spec/features/tags_spec.rb
camaleon_cms-2.4.3.8 spec/features/tags_spec.rb