[GH-ISSUE #380] Slurp package-browser e2e: "All creators" feed does not render a fresh public post (package-slurp.e2e.ts:95) #192

Closed
opened 2026-10-20 17:25:14 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/380

Originally assigned to: @Gunterlie on GitHub.

Summary

The desktop e2e test tests/package-slurp.e2e.ts:95 — "standalone Slurp package › creates package-owned profiles and shows their viewer feed" — fails deterministically at line 183: a freshly-created public post by a package-owned stage profile does not render in the "All creators" feed for the seeded viewer persona.

This is the last remaining red assertion in the Noodle/Slurp package-browser suite after the CI work in #375. It is filed separately so #375 can merge; the check is already fixed for all other PRs (trigger scoping + slurp activation).

Exact failure

Error: expect(locator).toBeVisible() failed

Locator: locator('[data-component="NoodleView"]').getByText('Standalone Slurp viewer post <ts>')
Expected: visible
Timeout: 10000ms
Error: element(s) not found

  182 |       await slurp.getByRole("tab", { name: "All creators" }).click();
> 183 |       await expect(slurp.getByText(postContent)).toBeVisible();

How we got here (why this only surfaced now)

Test 95 has effectively never passed — three failures were stacked, each masking the next. #375 fixes the first two:

  1. Slurp plugin activation — activate() in the slurp server-entry.ts called the engine-removed app.db._fileStore.registerTables(...), which threw a TypeError and failed the whole plugin, 404-ing every /api/slurp/* route. Fixed by dropping the dead call (the engine auto-registers package tables; Noodle's server-entry.ts never called it).
  2. Onboarding overlay — the test seeded its UI state into localStorage["marinara:slurp:ui"], but the client store reads/writes marinara:slurp:package-ui (renamed during the Slurp split). The seed was a no-op, so onboardingState fell back to its "unseen" default and the "So, what is Slurp?" first-run wizard rendered an overlay that intercepted the "All creators" tab click. Fixed by writing the correct key and seeding onboardingState: "completed".

With both fixed, the click lands and the test now reaches — and fails at — the feed-visibility assertion (line 183).

What is NOT the cause

  • The post is persisted — POST /api/slurp/noodler/posts returns ok and the test captures postId.
  • Activation and the overlay are resolved.

Root-cause hypothesis (unconfirmed — needs Slurp domain knowledge)

Correcting the localStorage key means viewerPersonaId is now actually set to the created persona for the first time (it was silently null before). The "All creators" feed does not surface the new package-owned stage profile's public post for that viewer. Most likely one of:

  • (a) Test-setup gap — the feed scopes to a personalized timeline (followed creators) or requires a follow / publish / index step the test never performs, so "All creators" is either the wrong tab for an unfollowed post or needs an extra setup call.
  • (b) Genuine feed bug — "All creators" is meant to list all public posts and a fresh stage-profile post is wrongly omitted.

Distinguishing (a) from (b) needs a live harness and Slurp feed knowledge, which is why this is flagged for the package owner rather than guessed at from the test side.

Pointers for whoever picks this up

  • Feed tab lives in the Slurp creator hub client (packages/slurp/src/engine/packages/client/src/components/slurp/SlurpHome.tsx / the NoodleView component); "All creators" is a role=tab.
  • Server side: packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts (feed/timeline + POST /noodler/posts + POST /accounts/:id/noodler stage-profile creation).
  • The viewer/onboarding store: packages/slurp/src/engine/packages/client/src/stores/slurp-package.store.ts (key marinara:slurp:package-ui).

Relationship to #375

#375 (@Gunterlie) fixes the CI for everyone else and gets test 95 past activation + the overlay. This one desktop feed assertion is the remaining item and is tracked here so #375 is not held up on it.

Originally created by @kolacheee on GitHub (Aug 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/380 Originally assigned to: @Gunterlie on GitHub. ## Summary The desktop e2e test **`tests/package-slurp.e2e.ts:95`** — *"standalone Slurp package › creates package-owned profiles and shows their viewer feed"* — fails deterministically at **line 183**: a freshly-created **public** post by a package-owned **stage profile** does **not** render in the **"All creators"** feed for the seeded viewer persona. This is the last remaining red assertion in the Noodle/Slurp package-browser suite after the CI work in #375. It is filed separately so #375 can merge; the check is already fixed for all other PRs (trigger scoping + slurp activation). ## Exact failure ``` Error: expect(locator).toBeVisible() failed Locator: locator('[data-component="NoodleView"]').getByText('Standalone Slurp viewer post <ts>') Expected: visible Timeout: 10000ms Error: element(s) not found 182 | await slurp.getByRole("tab", { name: "All creators" }).click(); > 183 | await expect(slurp.getByText(postContent)).toBeVisible(); ``` - **desktop-chromium** only (the mobile projection of this test is skipped). - CI run where it reproduces: https://github.com/Pasta-Devs/Marinara-Agents/actions/runs/31952651203 - Runs in ~16s (a real assertion failure, **not** a timeout/hang). ## How we got here (why this only surfaced now) Test 95 has effectively never passed — three failures were stacked, each masking the next. #375 fixes the first two: 1. **Slurp plugin activation** — `activate()` in the slurp `server-entry.ts` called the engine-removed `app.db._fileStore.registerTables(...)`, which threw a `TypeError` and failed the whole plugin, 404-ing every `/api/slurp/*` route. Fixed by dropping the dead call (the engine auto-registers package tables; Noodle's `server-entry.ts` never called it). 2. **Onboarding overlay** — the test seeded its UI state into `localStorage["marinara:slurp:ui"]`, but the client store reads/writes **`marinara:slurp:package-ui`** (renamed during the Slurp split). The seed was a no-op, so `onboardingState` fell back to its `"unseen"` default and the *"So, what is Slurp?"* first-run wizard rendered an overlay that intercepted the "All creators" tab click. Fixed by writing the correct key and seeding `onboardingState: "completed"`. With both fixed, the click lands and the test now reaches — and fails at — the **feed-visibility** assertion (line 183). ## What is NOT the cause - The post **is** persisted — `POST /api/slurp/noodler/posts` returns ok and the test captures `postId`. - Activation and the overlay are resolved. ## Root-cause hypothesis (unconfirmed — needs Slurp domain knowledge) Correcting the localStorage key means `viewerPersonaId` is now actually set to the created persona for the first time (it was silently `null` before). The "All creators" feed does not surface the new package-owned stage profile's public post for that viewer. Most likely one of: - **(a) Test-setup gap** — the feed scopes to a personalized timeline (followed creators) or requires a follow / publish / index step the test never performs, so "All creators" is either the wrong tab for an unfollowed post or needs an extra setup call. - **(b) Genuine feed bug** — "All creators" is meant to list *all* public posts and a fresh stage-profile post is wrongly omitted. Distinguishing (a) from (b) needs a live harness and Slurp feed knowledge, which is why this is flagged for the package owner rather than guessed at from the test side. ### Pointers for whoever picks this up - Feed tab lives in the Slurp creator hub client (`packages/slurp/src/engine/packages/client/src/components/slurp/SlurpHome.tsx` / the `NoodleView` component); "All creators" is a `role=tab`. - Server side: `packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts` (feed/timeline + `POST /noodler/posts` + `POST /accounts/:id/noodler` stage-profile creation). - The viewer/onboarding store: `packages/slurp/src/engine/packages/client/src/stores/slurp-package.store.ts` (key `marinara:slurp:package-ui`). ## Relationship to #375 #375 (@Gunterlie) fixes the CI for everyone else and gets test 95 past activation + the overlay. This one desktop feed assertion is the remaining item and is tracked here so #375 is not held up on it.
bsakaguchi 2026-10-20 17:25:14 +07:00
  • closed this issue
  • added the
    bug
    ci
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#192
No description provided.