Sha256: 3eba3243363daea66957303ec3f9ffcd59cccf8b46098ce6a2345b7099de8e20
Contents?: true
Size: 990 Bytes
Versions: 10
Compression:
Stored size: 990 Bytes
Contents
describe 'Add tags to an item in an exhibit', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) } let(:custom_field) { FactoryBot.build_stubbed(:custom_field, exhibit: exhibit) } before do login_as(curator) end it 'changes and display the of tags' do visit spotlight.exhibit_solr_document_path(exhibit, 'dq287tq6352') expect(page).to have_link 'Edit' click_on 'Edit' fill_in 'Tags', with: 'One, Two and a half, Three' click_on 'Save changes' visit spotlight.exhibit_solr_document_path(exhibit, 'dq287tq6352') within('dd.blacklight-exhibit_tags') do expect(page).to have_selector 'a', text: 'One' expect(page).to have_selector 'a', text: 'Two and a half' expect(page).to have_selector 'a', text: 'Three' end click_on 'Two and a half' expect(page).to have_content 'Remove constraint Exhibit Tags: Two and a half' end end
Version data entries
10 entries across 10 versions & 1 rubygems