Skip to content

test: expand provider matrix to comment threads, feed and search - #2321

Open
aeharding wants to merge 3 commits into
mainfrom
test/matrix-expansion
Open

test: expand provider matrix to comment threads, feed and search#2321
aeharding wants to merge 3 commits into
mainfrom
test/matrix-expansion

Conversation

@aeharding

Copy link
Copy Markdown
Owner

No description provided.

Pagination, max_depth/child_count and search are now derived from the seed
store on both fakes, so the specs pinned to lemmyv1 for those reasons move
to e2e/matrix and run on both providers:

- comment-thread: all 5 tests
- feed-interactions: pagination, sort, listing type, mark-read-on-open,
  load-failure recovery (post hiding stays — "not sent to the server" can
  only be asserted against a concrete v1 route)
- search: posts, communities, empty state (random community stays —
  getRandomCommunity is unsupported on piefed)

Two provider divergences get fixture support instead of forked specs:
api.sorts maps a Voyager sort option to the selected mode's canonical value
("new" vs "New"), and INITIAL_COMMENT_DEPTH captures that max_depth counts
from the post on Lemmy but from top-level on PieFed.
Adversarial review findings:

- post hiding moves to the matrix. Its old home was justified by
  asserting no POST /api/v4/post/hide, but threadiverse exposes no hide
  operation, so that request can never happen and the assertion can never
  fail. It now compares recorded writes before and after hiding, which is
  the actual claim and works on any provider.
- INITIAL_COMMENT_DEPTH derives from MAX_DEFAULT_COMMENT_DEPTH (+1 on
  piefed) instead of two magic numbers, so a change to the app constant
  can't silently desync the fixture.
- seedCommentChain ids no longer collide with spec-chosen ones, and the
  feed page size imports LIMIT rather than restating 50.
@aeharding
aeharding marked this pull request as ready for review July 25, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant