Repository navigation
test(e2e): the Word chart test waits for the chart's picture, not the sample's - #63
Merged
Merged
Conversation
… 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>
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.
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.docxoversample.docxand took.de-page-inner img[src^="blob:"].first(). Untilchart.docxis 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 withalt="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