Skip to content

test(e2e): the Word chart test waits for the chart's picture, not the sample's - #63

Merged
pierreneter merged 1 commit into
mainfrom
fix/flaky-chart-test
Dec 1, 2026
Merged

pierreneter merged 1 commit into
mainfrom
fix/flaky-chart-test

Conversation

@pierreneter

Copy link
Copy Markdown
Member

What

e2e/charts.spec.ts › a chart in a Word document is a picture in its line failed on main (run 46620771007): Expected: "360pt", Received: "324pt".

Why

The test opens chart.docx over sample.docx and took .de-page-inner img[src^="blob:"].first(). Until chart.docx is read and shown, that is the sample's picture, which is 4114800 EMU = 324 pt wide. On a slow runner the test read that picture's width.

Fix

The locator is now img[alt="Chart"][src^="blob:"]. A chart is drawn with alt="Chart", and the sample's picture has no alt text, so the test waits for the chart.

The spec passed 6 runs in a row locally.

🤖 Generated with Claude Code

… sample's

The test opened chart.docx over sample.docx and took the first blob picture
on the page; while chart.docx was being read that was the sample's picture,
324 pt wide, so the test failed now and then on CI (360pt expected).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pierreneter
pierreneter merged commit 9b1ce37 into main Dec 1, 2026
2 checks passed
@pierreneter
pierreneter deleted the fix/flaky-chart-test branch December 1, 2026 13:12
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