Sha256: 4daf4067b3679f091d89b0eb522c638d1cdecea77df5209d34d7492f3a4a42ef

Contents?: true

Size: 835 Bytes

Versions: 28

Compression:

Stored size: 835 Bytes

Contents

require "rails_helper"
describe "the Menus", js: true do
  init_site

  it "Plugins list" do
    admin_sign_in
    visit "#{cama_root_relative_path}/admin/plugins"
    expect(page).to have_css('#table-plugins-list')
    expect(page).to have_content("Attack")
    expect(page).to have_content("Contact Form")
    expect(page).to have_content("Front Cache")
    expect(page).to have_content("Active")

    # uninstall plugin
    within '#tab_plugins_active' do
      all(".btn-danger")[0].click
    end
    confirm_dialog
    expect(page).to have_css('.alert-success')

    # install plugin
    page.execute_script('$("#table-plugins-list .nav-tabs li").eq(1).find("a").click()')
    within '#tab_plugins_disabled' do
      all(".btn-primary")[0].click
    end
    confirm_dialog
    expect(page).to have_css('.alert-success')
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
camaleon_cms-2.6.4 spec/features/admin/plugins_spec.rb
camaleon_cms-2.6.3 spec/features/admin/plugins_spec.rb
camaleon_cms-2.6.2 spec/features/admin/plugins_spec.rb
camaleon_cms-2.6.1 spec/features/admin/plugins_spec.rb
camaleon_cms-2.6.0.1 spec/features/admin/plugins_spec.rb
camaleon_cms-2.6.0 spec/features/admin/plugins_spec.rb
camaleon_cms-2.5.3.1 spec/features/admin/plugins_spec.rb
camaleon_cms-2.5.3 spec/features/admin/plugins_spec.rb
camaleon_cms-2.5.2 spec/features/admin/plugins_spec.rb
camaleon_cms_rails6-2.5.0 spec/features/admin/plugins_spec.rb
camaleon_cms-2.5.1 spec/features/admin/plugins_spec.rb
camaleon_cms-2.5.0 spec/features/admin/plugins_spec.rb
camaleon_cms-2.4.6.9 spec/features/admin/plugins_spec.rb
camaleon_cms-2.4.6.8 spec/features/admin/plugins_spec.rb
camaleon_cms-2.4.6.7 spec/features/admin/plugins_spec.rb
camaleon_cms-2.4.6.6 spec/features/admin/plugins_spec.rb
camaleon_cms-2.4.6.5 spec/features/admin/plugins_spec.rb
camaleon_cms-2.4.6.4 spec/features/admin/plugins_spec.rb
camaleon_cms-2.4.6.3 spec/features/admin/plugins_spec.rb
camaleon_cms-2.4.6.2 spec/features/admin/plugins_spec.rb