demo_web_app icon indicating copy to clipboard operation
demo_web_app copied to clipboard

Reanimate tests for recent posts and categories

Open romikoops opened this issue 5 years ago • 0 comments

Motivation to disable the tests

tests are executing in parallel. Each test creates categories and posts to validate that they are shown as recent ones. Unfortunately at this moment of time other tests can create the entities.

Possible solution

  • Get last 3 categories and remember created_at time in test
  • Add created_at value to html element as an custom data attribute in Ruby on Rails app
  • Fetch recent entities via UI and validate: 1 - We can see recent articles and posts and only X and Y amount 2 - they are ordered based on the attribute properly 3 - Time creation of all is equal or higher than remembered created_at time

romikoops avatar Sep 26 '19 08:09 romikoops