Automation Practice
Social Feed
A social feed that loads more posts as you scroll, up to the end of the list.
🧪 Testing Challenge
Goal: Scroll the feed until you hit the end-of-list message.
Challenge: Nothing loads until it's actually visible, and timing is deliberately inconsistent - batched feed fetches with a fresh random delay on every request. A fixed sleep() will not survive this page; you need real wait conditions.
Each batch takes a random 0-7 seconds to arrive - a fresh random delay every single time, not one fixed value for the whole run. Author names are randomized too, not sequential, so you can't key off "post #N". Verify the feed renders exactly 10 posts on load, appends batches of 10 only once the sentinel is actually in view, stalls correctly while a batch is mid-fetch (even a near-instant 0s one), and stops for good at 50 with a clear end-of-feed message shown exactly once.
- +Assert exactly 10 posts render on initial page load, before any scrolling
- +Scroll to the bottom and assert the loading spinner appears before the next batch renders
- +Assert each batch adds exactly 10 posts, up to a maximum of 50
- +Assert the end-of-feed message appears only once the count reaches 50, never before
- +Time consecutive batch loads and assert your wait logic isn't just a fixed sleep()
- +Click Reset Feed and assert the list returns to exactly 10 posts
Infinite Scroll Social Feed
Starts with 10 posts, loads 10 more each time you reach the bottom, up to 50.
Taylor Reed
3m ago
Finally got the flaky checkout test to pass 5 times in a row. Turns out it wasn't flaky, it was a real race condition.
Skyler Cross
6m ago
Hot take: if your test suite needs a sleep(5) to pass, it's not testing your app, it's testing your patience.
Elliot Reyes
9m ago
Wrote 12 assertions today. Deleted 9 of them because they were testing the framework, not the feature.
Jordan Park
12m ago
PSA: data-cy attributes are not optional. Future you will send a thank-you card.
Reese Patel
15m ago
Spent the morning debugging a selector that broke because a designer renamed a div. Living the dream.
Kai Sorensen
18m ago
Green pipeline on a Friday afternoon. Not touching anything else today.
Casey Nguyen
21m ago
Explicit waits > hard sleeps. Every. Single. Time.
Emerson Cole
24m ago
Today's lesson: an element can be 'visible' and still not be interactable. Ask me how I know.
Blair Whitman
27m ago
Finally got the flaky checkout test to pass 5 times in a row. Turns out it wasn't flaky, it was a real race condition.
Riley Novak
30m ago
Hot take: if your test suite needs a sleep(5) to pass, it's not testing your app, it's testing your patience.
Need expert QA help? We offer team training, automation consulting, and end-to-end QA services.
Need this tested professionally?
Chasing flaky infinite-scroll feeds in production tests? AssertQA delivers test automation services, manual testing services, and API testing services for teams that need real-world quality.
Talk to our QA team