expect(page).tohave_text("#{organizer.name} updated social tag, email, googleplus and sponsor email of contact details in conference #{conference.short_title}")
end
scenario'display changes in program',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new registration period in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated start date and end date of registration period in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted registration period in conference #{conference.short_title}")
end
scenario'display changes in conference',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new event type Discussion in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated length and maximum abstract length of event type Discussion in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted event type Discussion in conference #{conference.short_title}")
end
scenario'display changes in lodging',feature:true,versioning:true,js:truedo
lodging.update_attributes(description:'Nice view,close to venue',website_link:'http://www.example.com')
lodging.destroy
visitadmin_revision_history_path
expect(page).tohave_text("Someone (probably via the console) created new lodging Hotel XYZ in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated description and website link of lodging Hotel XYZ in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted lodging Hotel XYZ in conference #{conference.short_title}")
end
scenario'display changes in role',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new sponsor SUSE in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated website url and sponsorship level of sponsor SUSE in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted sponsor SUSE in conference #{conference.short_title}")
end
scenario'display changes in sponsorship_level',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new ticket Gold in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated price cents and description of ticket Gold in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted ticket Gold in conference #{conference.short_title}")
end
scenario'display changes in track',feature:true,versioning:true,js:truedo
venue.update_attributes(website:'www.example.com new',description:'Just another beautiful venue')
venue.destroy
visitadmin_revision_history_path
expect(page).tohave_text("Someone (probably via the console) created new venue Example University in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated website and description of venue Example University in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted venue Example University in conference #{conference.short_title}")
end
scenario'display changes in event',feature:true,versioning:true,js:truedo
check('Display the registration period on the splashpage?')
click_button'Save Splashpage'
click_link'Delete'
visitadmin_revision_history_path
expect(page).tohave_text("#{organizer.name} created new splashpage in conference #{conference.short_title}")
expect(page).tohave_text("#{organizer.name} updated public, include tracks and include registrations of splashpage in conference #{conference.short_title}")
expect(page).tohave_text("#{organizer.name} deleted splashpage in conference #{conference.short_title}")
end
scenario'displays users subscribe/unsubscribe to conferences',feature:true,versioning:true,js:truedo
visitroot_path
click_link'Subscribe'
click_link'Unsubscribe'
PaperTrail::Version.last.reify.save!
PaperTrail::Version.last.item.destroy!
visitadmin_revision_history_path
expect(page).tohave_text("#{organizer.name} subscribed to conference #{conference.title}")
expect(page).tohave_text("#{organizer.name} unsubscribed from conference #{conference.title}")
expect(page).tohave_text("Someone (probably via the console) subscribed #{organizer.name} to conference #{conference.title}")
expect(page).tohave_text("Someone (probably via the console) unsubscribed #{organizer.name} from conference #{conference.title}")
end
scenario'display changes in conference commercials',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new commercial in event #{event.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated url of commercial in event #{event.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted commercial in event #{event.title} in conference #{conference.short_title}")
end
scenario'display changes in users_role',feature:true,versioning:true,js:truedo
user=create(:user)
user.add_role:cfp,conference
user.remove_role:cfp,conference
visitadmin_revision_history_path
expect(page).tohave_text("added role cfp to user #{user.name} in conference #{conference.short_title}")
expect(page).tohave_text("removed role cfp from user #{user.name} in conference #{conference.short_title}")
end
scenario'display changes in email settings',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) registered #{organizer.name} to event My second event in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated attended of #{organizer.name}'s registration for event #{event.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) unregistered #{organizer.name} from event #{event.title} in conference #{conference.short_title}")
end
scenario'display changes in target',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new target 1000 Submissions by #{Date.today} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated due date and target count of target 1000 Submissions by #{Date.today} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted target 1000 Submissions by #{Date.today} in conference #{conference.short_title}")
end
scenario'display changes in comment',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) deleted #{organizer.name}'s comment on event #{event.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) re-added #{organizer.name}'s comment on event #{event.title} in conference #{conference.short_title}")
scenario'display changes in vote',feature:true,versioning:true,js:truedo
conference.program.rating=1
create(:event,program:conference.program,title:'My first event')
event=create(:event,program:conference.program,title:'My second event')
create(:vote,user:organizer,event:event)
Vote.last.destroy
PaperTrail::Version.last.reify.save
visitadmin_revision_history_path
expect(page).tohave_text("Someone (probably via the console) voted on event My second event in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted #{organizer.name}'s vote on event #{event.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) re-added #{organizer.name}'s vote on event #{event.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) created new campaign Test Campaign in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated utm source, utm medium, utm term and utm content of campaign Test Campaign in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted campaign Test Campaign in conference #{conference.short_title}")