Sha256: 81ee56c250ea0e9d9a6c945ec2ef76a8a01884955395eb41f32aef114e6720fb
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
require 'spec_helper' describe 'feedback form', js: true do before do visit feedback_path end describe 'feedback help alerts' do let(:contact_help_text_id) { '#contact_help_text' } it 'should not display the feedback help text' do expect(page).to have_selector("#{contact_help_text_id}.hidden", visible: false) end describe 'selecting type option with help text' do before do select I18n.t('blacklight.feedback.form.topic.options.repro.option'), :from => 'message_type_select' end it 'should display the feedback help text' do expect(page).not_to have_selector("#{contact_help_text_id}.hidden") expect(page).to have_selector("#{contact_help_text_id}", visible: true) end describe 'then selecting type option without help text' do before do select I18n.t('blacklight.feedback.form.topic.options.default.option'), :from => 'message_type_select' end it 'should not display the feedback help text' do expect(page).to have_selector("#{contact_help_text_id}.hidden", visible: false) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems