h8r4npp3p: Add the new-posts pill, feed list motion and app-wide reduced-motion switch-off
This commit is contained in:
@@ -115,9 +115,11 @@ describe("FeedView", () => {
|
||||
expect(html).toContain("Try again");
|
||||
});
|
||||
|
||||
it("spinner while loading more and a new-posts control", () => {
|
||||
it("skeleton card while loading more and the new-posts pill", () => {
|
||||
const html = render({ posts: toCardPosts([post("1", "2026-10-19T11:00:00Z")]), loadingMore: true, newCount: 2 });
|
||||
expect(html).toContain('class="spinner"');
|
||||
expect(html).toContain('data-testid="feed-skeleton"');
|
||||
expect(html).not.toContain('class="spinner"');
|
||||
expect(html).toContain("btn-grow");
|
||||
expect(html).toContain("2 new posts");
|
||||
expect(html).not.toContain("Load more");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user