miniflux-legacy/tests/integration
Mathias Kresin 475c71d107 fix race conditions in tests
Wait till the counter has the desired value, instead of assuming that
the counter already has the expected value. This fixes the tests on
slow browsers.

Furthermore, the wait isn't needed any more, now that the counter
queries are race ondition proof.

The waitForIconMarkReadInvisible was the wrong wait function here, since
the whole article will be hidden instead of the read icon. This could
lead into race condition related errors if the article is hidden before
the waitForIconMarkRead() functions runs. The article variable that is
used to address the child read icon can refer to an (DOM) object which
doesn't exist any longer => StaleElementReferenceException.

The correct wait function in such a case would be waitForArticleInvisible().
2015-08-13 23:06:33 +02:00
..
datasets mark items on page 2+ read as well, update tests 2015-04-07 22:46:50 +02:00
keyboardShortcutsTest.php mark items on page 2+ read as well, update tests 2015-04-07 22:46:50 +02:00
minifluxTestCase.php fix race conditions in tests 2015-08-13 23:06:33 +02:00
pageBookmarksTest.php mark items on page 2+ read as well, update tests 2015-04-07 22:46:50 +02:00
pageFirstFeedTest.php mark items on page 2+ read as well, update tests 2015-04-07 22:46:50 +02:00
pageHistoryTest.php fix race conditions in tests 2015-08-13 23:06:33 +02:00
pageSubscriptionTest.php
pageUnreadTest.php mark items on page 2+ read as well, update tests 2015-04-07 22:46:50 +02:00