Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 81db840129e6023cd3be1fbdbe6fb482564cfc0a
parent e876046d538b0d5fc389ad9562f101bcc8b90451
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 18 Nov 2026 18:54:36 -0500

e2e: the watch tick's timeline request names its timeline, as the page's does

The spec built that request by hand with empty variables, while the continuation after it named the
timeline: the page's end is found per timeline, so the two were not one timeline's answers.

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Mcommon/social/__fixtures__/xTrendingCapture.ts | 7+++++++
Meditor/e2e/x-trending.spec.ts | 5+++--
2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/common/social/__fixtures__/xTrendingCapture.ts b/common/social/__fixtures__/xTrendingCapture.ts @@ -164,6 +164,13 @@ const graphqlUrl = (op: string, n: number, cursor?: string) => }), )}`; +// The address of a request for the page's timeline (the tab the page opens +// on): its `variables` name the timeline, and the cursor it continues from +// when it is not the first. +export function fixtureTimelineUrl(n = 2, cursor?: string): string { + return graphqlUrl(FIXTURE_TIMELINE_OP, n, cursor); +} + // The page asking its timeline for MORE: the request carries the bottom cursor // of the answer before it. With no post it is how a page's end looks. export function fixtureContinuation(tweets: FixtureTweet[] = [], n = 9, cursor: string = FIXTURE_BOTTOM_CURSOR): FixtureResponse { diff --git a/editor/e2e/x-trending.spec.ts b/editor/e2e/x-trending.spec.ts @@ -21,12 +21,12 @@ import { baseUrl } from "./baseUrl"; import { FIXTURE_FIRST_PAGE, FIXTURE_SUMMARY, - FIXTURE_TIMELINE_OP, FIXTURE_TITLE, FIXTURE_TOP_TIMELINE, FIXTURE_TREND_URL, fixtureContinuation, fixtureTimelineBody, + fixtureTimelineUrl, fixtureTrendingResponses, } from "../../common/social/__fixtures__/xTrendingCapture"; @@ -252,7 +252,8 @@ test("an X trending library: judgements, a watch tick, media kept once, gone fro trending: { load: [ { - url: `https://x.com/i/api/graphql/fixtureQueryId2/${FIXTURE_TIMELINE_OP}?variables=%7B%7D`, + // The timeline's first request, as the page sends it: it names the timeline and carries no cursor. + url: fixtureTimelineUrl(), status: 200, body: fixtureTimelineBody([FIXTURE_FIRST_PAGE[0], { id: NEW, handle: "spout_clips", text: "Two pictures of the queue.", media: ["photo", "photo"] }]), },