Sha256: d04855885233a927e70c723ce1c1f2b447dfd4cd2a45b1ab3b70dbd29c0ddb66

Contents?: true

Size: 494 Bytes

Versions: 6

Compression:

Stored size: 494 Bytes

Contents

require 'spec_helper'

describe 'element create feature', js: true do
  let(:a_page) { FactoryGirl.create(:page) }

  before do
    authorize_as_admin
    visit edit_admin_page_path(a_page)
    expect(page).to have_no_selector('.alchemy-elements-window .element_editor')
  end

  it "adds a new element to the list" do
    create_element!
    expect(page).to have_no_selector(".spinner") # wait until spinner disappears
    expect(page).to have_selector(".element_editor", count: 1)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 spec/features/admin/element_create_feature_spec.rb
alchemy_cms-2.9.0 spec/features/admin/element_create_feature_spec.rb
alchemy_cms-2.8.3 spec/features/admin/element_create_feature_spec.rb
alchemy_cms-2.7.5 spec/features/admin/element_create_feature_spec.rb
alchemy_cms-2.7.4 spec/features/admin/element_create_feature_spec.rb
alchemy_cms-2.8.2 spec/features/admin/element_create_feature_spec.rb