Sha256: a854556e769aca0a5cd52775c4051f1de21d10fd3912bad5fb33bf2c2c09d22d
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require "spec_helper" feature "Facets Administration", js: true do let(:exhibit) { FactoryGirl.create(:exhibit) } let(:exhibit_curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) } before { login_as exhibit_curator } it "should allow us to update the label with edit-in-place" do input_id = "blacklight_configuration_facet_fields_genre_ssim_label" visit spotlight.exhibit_home_page_path(exhibit, exhibit.home_page) click_link exhibit_curator.email within '#user-util-collapse .dropdown' do click_link 'Dashboard' end click_link "Search facets" facet = find(".edit-in-place", text: "Genre") expect(page).not_to have_content("Topic") expect(page).to have_css("input##{input_id}", visible: false) facet.click expect(page).to have_css("input##{input_id}", visible: true) fill_in(input_id, with: "Topic") click_button "Save changes" expect(page).to have_content("The exhibit was successfully updated.") expect(page).not_to have_content("Genre") expect(page).to have_content("Topic") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.4.1 | spec/features/javascript/facet_admin_spec.rb |