I am trying to write some tests in capybara that will check a list of dates, sorted correctly. For example, I have a list of dates Wed Jun 27, Mon 13 Aug 12, Thu May 31, 12, and when I click on the button, it will change the dates starting from the earliest, i.e.: Thu May 31, 12, Wed. June 27, August 12, 13.
Is there a way in capybara so you can write such tests.
Normally I would use methods like page.find, etc., but these methods will simply find the dates and not tell if they were sorted in the correct order.
ruby-on-rails selenium automated-tests rspec capybara
Ray
source share