How do I test the order of elements on a rails app page with Rspec / Capybara?
I have a 'Team' index page and I just want to TDD the ordering of the elements on page. My instructions are to validate they are showing most recently created first.
I know how to do the actual implementation, just not sure how to test that a team created today shows up before a team created yesterday.
Thanks!
I'm familiar with the nitty-gritty of putting this into practice, but I'm stumped as to how to guarantee that a team made today would appear ahead of one made yesterday during testing.