Skip to content

test(e2e): check that OperatorX draws its first chart without scrolling / OperatorX E2E 检查首张图表无需滚动即绘制 - #1568

Merged
adibarra merged 2 commits into
masterfrom
fix/operatorx-metric-vs-size-e2e
Oct 29, 2026
Merged

adibarra merged 2 commits into
masterfrom
fix/operatorx-metric-vs-size-e2e

Conversation

@adibarra

@adibarra adibarra commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

#1567 already fixed the OperatorX E2E failures that #1562 introduced, by scrolling each chart into view before checking it. That leaves nothing checking that OperatorX still draws its first chart on load without scrolling (the progressive rendering from #1452). If a change made every chart wait for scroll, the top of the page would stay empty and CI would still pass.

This adds that check to the progressive-rendering test. It targets whichever chart comes first rather than naming one, so reordering charts won't break it. Spec-only change; no app code.

Validation details

Local E2E_FIXTURES=1 build on current master plus this change: operatorx.cy.ts passed 14/14 on 2 runs in Chrome with retries=0.

AI model disclosure
  • Model/version: anthropic/claude-opus-5-5
  • Role: wrote the spec change and ran the Cypress checks.
PR checklist
  • I have completed the AI model disclosure and kept it current
  • Added, changed, or removed filters, views, or pages include the matching API and inferencex-skills changes
  • New or changed indexable pages ship their /zh sibling
  • Changed Chinese copy follows the PR review checklist in docs/chinese-copy.md
中文

#1567 已通过在检查前滚动到各图表,修复了 #1562 引入的 OperatorX E2E 失败。但此后没有任何测试检查 OperatorX 是否仍会在加载时无需滚动即绘制第一张图表(#1452 引入的渐进渲染)。如果某次改动让所有图表都等到滚动才渲染,页面顶部会一直为空,而 CI 仍会通过。

本 PR 在渐进渲染测试中补上这项检查。它检查排在第一位的图表,而不是写死某个图表,因此调整图表顺序不会使其失败。仅修改测试,不涉及应用代码。

验证:在当前 master 加本改动的本地 E2E_FIXTURES=1 构建上,operatorx.cy.ts 在 Chrome 中以 retries=0 运行 2 次,均为 14/14。

AI 模型使用说明:anthropic/claude-opus-5-5,负责修改测试并运行 Cypress 检查。

#1562 moved Roofline ahead of Metric vs size. With no baseline in the fixtures, Roofline is now the first card, the only one rendered without scrolling, and the full-width Roofline pushes Metric vs size more than 300 px below the 720 px viewport, so it mounts only when scrolled into view. Two assertions still expected Metric vs size drawn on load, so operatorx.cy.ts failed on every run in Chrome and Firefox. The default-shape test now scrolls to Metric vs size before reading its legend and shape, and the progressive-rendering test checks whichever chart comes first.

中文:OperatorX E2E 不再依赖旧的图表顺序。#1562 将 Roofline 移到 Metric vs size 之前。测试数据没有基线时,Roofline 成为第一张卡片,也是唯一无需滚动即渲染的图表;全宽的 Roofline 把 Metric vs size 推到 720 px 视口下方 300 px 以外,只有滚动到附近才会挂载。两处断言仍要求 Metric vs size 在加载时即已绘制,因此 operatorx.cy.ts 在 Chrome 和 Firefox 中每次都失败。默认形状测试现在先滚动到 Metric vs size 再读取图例和形状,渐进渲染测试改为检查排在第一位的图表。
@vercel

vercel Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
inferencemax-app Ready Ready Preview Oct 29, 2026 5:05pm UTC

Request Review

Master's #1567 already scrolls OperatorX charts into view before checking them. Keep that version and add only a check that the first chart is drawn on load without scrolling.

中文:将 origin/master 合并到 fix/operatorx-metric-vs-size-e2e。master 的 #1567 已在检查前滚动到 OperatorX 图表;保留该版本,仅新增一项检查:第一张图表在加载时无需滚动即已绘制。
@adibarra adibarra changed the title test(e2e): stop pinning OperatorX specs to the old chart order / OperatorX E2E 不再依赖旧的图表顺序 test(e2e): check that OperatorX draws its first chart without scrolling / OperatorX E2E 检查首张图表无需滚动即绘制 Oct 29, 2026
@adibarra
adibarra merged commit 9c15f9b into master Oct 29, 2026
33 checks passed
@adibarra
adibarra deleted the fix/operatorx-metric-vs-size-e2e branch October 29, 2026 17:11

This branch was successfully deployed

1 active deployment
Preview — 397916ad Deployed Oct 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant