I'm writing a web application which contains a kind of schedule. After a certain action, the schedule is updated and when the user visit the page that day something happens.
Any ideas how to write a functional (acceptance) test for that kind of functionality?
I'm writing these end-to-end tests using Selenium. The only idea I have is to have a possibility to force the server to use given date by visiting an URL like /set-fixed-time?time=..., then after the test visit /set-real-time. On the server I would use a custom object to get current time and that object would be swapped when one of the URLs is visited.