Sha256: f89120be5f474815f4eb3abc35c0865715f2020a041776cc274b638ad28fe455
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
if ENV['BROWSER'] require 'spec_helper' describe 'cookies collection', type: :feature do if ENV['BROWSER'] != 'phantom' # TODO: fails in phantom for some reason it 'should add' do visit '/' click_link 'Cookies' fill_in('cookieName', with: 'one') fill_in('cookieValue', with: 'one') click_button 'Add Cookie' expect(page).to have_content('one: one') # Reload the page page.evaluate_script('document.location.reload()') # Check again expect(page).to have_content('one: one') end end it 'should delete cookies' do visit '/' click_link 'Cookies' fill_in('cookieName', with: 'two') fill_in('cookieValue', with: 'two') click_button 'Add Cookie' expect(page).to have_content('two: two') find('.cookieDelete').click expect(page).to_not have_content('two: two') # Reload the page page.evaluate_script('document.location.reload()') expect(page).to_not have_content('two: two') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
volt-0.8.21 | spec/integration/cookies_spec.rb |
volt-0.8.20 | spec/integration/cookies_spec.rb |
volt-0.8.19 | spec/integration/cookies_spec.rb |