Sha256: 31338383570012038c607639265b061728c0ca84d9b84d99ccf3affe0382906c
Contents?: true
Size: 833 Bytes
Versions: 1
Compression:
Stored size: 833 Bytes
Contents
require 'spec_helper' describe 'Integration test', type: :feature, js: true do let(:container) { find('.meyasubako__container', visible: false) } let(:heading) { find('.meyasubako__heading') } before { visit root_path } describe 'toggle box' do it 'should toggle the visibility' do expect(container).not_to be_visible heading.click expect(container).to be_visible end end describe 'send opinion' do it 'should send correctly' do heading.click fill_in :meyasubako__content, with: 'foo' click_on 'Submit' # Wait for sending email expect(page).to have_content 'Sending ...' expect(page).to have_content 'Thank you for sending your opinion.' open_email 'test@example.com' expect(current_email).to have_content 'foo' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
meyasubako-0.1.0 | spec/requests/meyasubako_pages_spec.rb |