Archilyzer · Source

archilyzer

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

commit 9941856cb6a9c6efff6a8d6f75c557e7938c15d5
parent 766798700cdd1208779bb98fa9cd000602fd4ab5
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 20 Oct 2026 18:44:40 -0400

e2e: x-search's archive-button locators are exact ("archive leadone" also named "never archive leadone")

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/e2e/x-search.spec.ts | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/editor/e2e/x-search.spec.ts b/editor/e2e/x-search.spec.ts @@ -83,7 +83,7 @@ test("an X search channel: the form, the walk, the leads, Never archive and Arch await expect(leads.getByLabel("matches for leadone")).toHaveText("2"); // Never archive: hidden here, kept in the channel's xSearch.exclude. - await leads.getByRole("button", { name: "never archive leadthree" }).click(); + await leads.getByRole("button", { name: "never archive leadthree", exact: true }).click(); await expect(leads.locator('tr[data-x-lead="leadthree"]')).toHaveCount(0); await expect(leads.locator("[data-x-search-hidden] summary")).toHaveText("Never archive (1)"); expect((await readJson<Config>(configPath)).xSearch?.exclude).toEqual(["leadthree"]); @@ -93,7 +93,7 @@ test("an X search channel: the form, the walk, the leads, Never archive and Arch await expect.poll(async () => (await readJson<Config>(configPath)).xSearch?.exclude).toBeUndefined(); // Archive this account: leadone-x, an X channel on no site, its first fetch started. - await leads.getByRole("button", { name: "archive leadone" }).click(); + await leads.getByRole("button", { name: "archive leadone", exact: true }).click(); await expect(leads.getByRole("status")).toHaveText(/Created leadone-x on no site/); const leadConfig = `${testPaths().transcriptsDir}/channels/leadone-x/config.json`; await expect @@ -105,5 +105,5 @@ test("an X search channel: the form, the walk, the leads, Never archive and Arch // The lead now names the channel that archives it. await page.reload(); await expect(page.locator('tr[data-x-lead="leadone"]')).toContainText("Archived as leadone-x"); - await expect(page.getByRole("button", { name: "archive leadone" })).toHaveCount(0); + await expect(page.getByRole("button", { name: "archive leadone", exact: true })).toHaveCount(0); });