2018-05-07 16:47:29 -07:00
# frozen_string_literal: true
2016-06-22 02:26:38 +05:30
require 'spec_helper'
feature 'Version' do
let! ( :conference ) { create ( :conference ) }
2018-10-18 12:01:42 -07:00
let! ( :cfp ) { create ( :cfp , program : conference . program ) }
2019-03-13 10:31:42 +01:00
let! ( :organizer ) { create ( :organizer , resource : conference ) }
2017-04-24 15:39:39 +05:30
let ( :event_with_commercial ) { create ( :event , program : conference . program ) }
let ( :event_commercial ) { create ( :event_commercial , commercialable : event_with_commercial , url : 'https://www.youtube.com/watch?v=M9bq_alk-sw' ) }
2016-06-22 02:26:38 +05:30
before ( :each ) do
sign_in organizer
end
2025-08-05 16:50:35 +02:00
scenario 'displays changes' , feature : true , versioning : true , js : true do
2016-06-22 02:26:38 +05:30
visit edit_admin_conference_contact_path ( conference . short_title )
fill_in 'contact_email' , with : 'example@example.com'
fill_in 'contact_sponsor_email' , with : 'sponsor@example.com'
fill_in 'contact_social_tag' , with : 'example'
fill_in 'contact_googleplus' , with : 'http:\\www.google.com'
click_button 'Update Contact'
2025-08-06 13:04:53 +02:00
within ( '#flash' ) { expect ( page ) . to have_text ( 'Contact details were successfully updated.' ) }
2016-06-22 02:26:38 +05:30
visit admin_revision_history_path
expect ( page ) . to have_text ( " #{ organizer . name } updated social tag, email, googleplus and sponsor email of contact details in conference #{ conference . short_title } " )
end
end