Repository navigation
test(e2e): check that OperatorX draws its first chart without scrolling / OperatorX E2E 检查首张图表无需滚动即绘制 - #1568
Merged
Merged
Conversation
#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 再读取图例和形状,渐进渲染测试改为检查排在第一位的图表。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 图表;保留该版本,仅新增一项检查:第一张图表在加载时无需滚动即已绘制。
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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=1build on currentmasterplus this change:operatorx.cy.tspassed 14/14 on 2 runs in Chrome withretries=0.AI model disclosure
PR checklist
inferencex-skillschanges/zhsiblingdocs/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 检查。