test(ci): isolate flaky scenarios and retain failure diagnostics (#6622)
* test(ci): isolate HTTP stubs and retain failure diagnostics * test(agent): scope compaction watchdogs to each phase * test(webui): isolate settings skeleton scenarios * test(webui): await rendered rail content before scroll checks
This commit is contained in:
1 parent
220d5e6970
commit
62c05e7f7e
7 files changed
+40
-22
No files matched your search
@@ -29,7 +29,10 @@ test("complete rail scrolls independently, jumps to unloaded history and returns
|
||||
await expectRailCentered();
|
||||
await expect.poll(() => rail.evaluate((node) => node.scrollHeight)).toBe(32024);
|
||||
expect(reads).toHaveLength(0);
|
||||
// Lazy markdown and content-visibility can change the scroll range during startup.
|
||||
// A stationary lazy-render fallback is not a settled transcript.
|
||||
await expect(body.locator('[data-thread-display-unit="a1999"] .markdown-content p')).toHaveCount(8);
|
||||
await page.evaluate(async () => { await document.fonts.ready; });
|
||||
// Content visibility and the camera can still settle after the renderer is ready.
|
||||
await body.evaluate(async (node) => {
|
||||
let previous = -1;
|
||||
let stable = 0;
|
||||
|
||||
@@ -54,8 +54,8 @@ for (const width of [390, 1440]) for (const locale of ["en", "zh-CN"]) {
|
||||
}
|
||||
});
|
||||
|
||||
test("settings sections preserve their loaded row layout", async ({ page }, testInfo) => {
|
||||
for (const surface of ["notifications", "capabilities", "runtime", "advanced", "sandbox", "overview", "models", "about"]) {
|
||||
for (const surface of ["notifications", "capabilities", "runtime", "advanced", "sandbox", "overview", "models", "about"]) {
|
||||
test(`settings ${surface} preserves its loaded row layout`, async ({ page }, testInfo) => {
|
||||
const section = surface === "sandbox" ? "advanced" : surface;
|
||||
const extra = `§ion=${section}${section === "notifications" ? "¬ificationPermission=granted" : ""}${surface === "sandbox" ? "&sandboxSettings" : ""}`;
|
||||
await page.goto(fixture("settings", "loaded", extra));
|
||||
@@ -93,8 +93,8 @@ for (const width of [390, 1440]) for (const locale of ["en", "zh-CN"]) {
|
||||
await testInfo.attach("notifications-layout", { body: JSON.stringify({ loaded, skeleton, loadedControls, skeletonControls }, null, 2), contentType: "application/json" });
|
||||
}
|
||||
await accessibleSkeleton(page);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
test("appearance stays usable and keeps its layout while gateway settings load or fail", async ({ page }) => {
|
||||
await page.addInitScript(() => localStorage.setItem("nanobot-webui.settings-preferences", JSON.stringify({
|
||||
|
||||
Reference in new issue
Block a user