From 74374a0faee10e5a4d5e169fe28ea0f7c6106c46 Mon Sep 17 00:00:00 2001 From: Charlie Croom Date: Mon, 14 Sep 2026 16:19:55 -0400 Subject: [PATCH] Size navigation and plugin journey histories to their actual needs Co-authored-by: Amp Signed-off-by: Charlie Croom Amp-Thread-ID: https://ampcode.com/threads/T-01a0a149-b278-7550-acc4-356168b0c4b5 --- tests/browser/navigation-boundaries.spec.mjs | 2 +- tests/browser/navigation-lifecycle.spec.mjs | 2 +- tests/browser/navigation.spec.mjs | 2 ++ tests/browser/plugins.spec.mjs | 2 +- tests/browser/shortcuts.spec.mjs | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/browser/navigation-boundaries.spec.mjs b/tests/browser/navigation-boundaries.spec.mjs index e3510556..97d74c1d 100644 --- a/tests/browser/navigation-boundaries.spec.mjs +++ b/tests/browser/navigation-boundaries.spec.mjs @@ -1,6 +1,6 @@ import { test, expect } from "./fixture.mjs"; import { open } from "./timeline.mjs"; -test.use({ pluginFixtures: true }); +test.use({ pluginFixtures: true, historyCounts: { alpha: 1, beta: 0 } }); // Regressions from the independent review, exercised through production composition. test("cold destination waits for its enabled provider to activate", async ({ diff --git a/tests/browser/navigation-lifecycle.spec.mjs b/tests/browser/navigation-lifecycle.spec.mjs index 2bd837bb..d8e06b47 100644 --- a/tests/browser/navigation-lifecycle.spec.mjs +++ b/tests/browser/navigation-lifecycle.spec.mjs @@ -1,5 +1,5 @@ import { test, expect } from "./fixture.mjs"; -test.use({ pluginFixtures: true }); +test.use({ pluginFixtures: true, historyCounts: { alpha: 0, beta: 0 } }); const button = (page, name) => page.getByRole("button", { name, exact: true }); test("Local Settings retain plugin recovery without blocking Profile and Appearance", async ({ diff --git a/tests/browser/navigation.spec.mjs b/tests/browser/navigation.spec.mjs index ca5efd32..75f03bf1 100644 --- a/tests/browser/navigation.spec.mjs +++ b/tests/browser/navigation.spec.mjs @@ -1,6 +1,8 @@ import { test, expect } from "./fixture.mjs"; import { open } from "./timeline.mjs"; +test.use({ historyCounts: { alpha: 1, beta: 0 } }); + const button = (page, name) => page.getByRole("button", { name, exact: true }); const composer = (page, name) => page.getByRole("textbox", { name: `Message #${name}`, exact: true }); diff --git a/tests/browser/plugins.spec.mjs b/tests/browser/plugins.spec.mjs index 44a1f829..38f531ea 100644 --- a/tests/browser/plugins.spec.mjs +++ b/tests/browser/plugins.spec.mjs @@ -1,6 +1,6 @@ import { test, expect } from "./fixture.mjs"; -test.use({ pluginFixtures: true }); +test.use({ pluginFixtures: true, historyCounts: { alpha: 0, beta: 0 } }); const button = (page, name) => page.getByRole("button", { name, exact: true }); const card = (page, name) => page.getByRole("complementary", { name, exact: true }); diff --git a/tests/browser/shortcuts.spec.mjs b/tests/browser/shortcuts.spec.mjs index 4a4de409..34037648 100644 --- a/tests/browser/shortcuts.spec.mjs +++ b/tests/browser/shortcuts.spec.mjs @@ -1,7 +1,7 @@ import { test, expect } from "./fixture.mjs"; import { open } from "./timeline.mjs"; -test.use({ pluginFixtures: true }); +test.use({ pluginFixtures: true, historyCounts: { alpha: 1, beta: 0 } }); const button = (page, name) => page.getByRole("button", { name, exact: true }); const font = (locator) => locator.evaluate((el) => parseFloat(getComputedStyle(el).fontSize));