-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix intermittent issues in the issue14307.pdf
integration tests
#19192
Fix intermittent issues in the issue14307.pdf
integration tests
#19192
Conversation
The `must check input for US zip format` integration test fails pretty consistently in Puppeteer 23.4.0+ with `Expected '12341' to equal '12345'`. This is reproducible with the `pdf.sandbox.external.js` hack from mozilla#18396 (comment). Investigation uncovered two issues at play here: 1. We do two `clearInput` calls, but don't await processing of the two sandbox events that are triggered by that action. The three tests that use `issue14307.pdf` are in different `describe` blocks and therefore reload the PDF file, so we can simply remove those calls because the inputs are already empty by default. 2. We don't await processing of the sandbox events that occur after switching to another text field. This causes the expectation failure because the typing actions will happen too soon and interfere with the sandbox event processing. We solve the issue by explicitly awaiting the sandbox roundtrip. Moreover, similar to PR mozilla#19001 and mozilla#18399 we remove any remaining room for intermittent issues by directly checking for the expected value, which also results in shorter code.
/botio integrationtest |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.193.163.58:8877/7bd22dbee801160/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/6597b73750f8226/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/6597b73750f8226/output.txt Total script time: 10.27 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/7bd22dbee801160/output.txt Total script time: 24.74 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, thank you.
The
must check input for US zip format
integration test fails pretty consistently in Puppeteer 23.4.0+ withExpected '12341' to equal '12345'
. This is reproducible with thepdf.sandbox.external.js
hack from #18396 (comment). Investigation uncovered two issues at play here:We do two
clearInput
calls, but don't await processing of the two sandbox events that are triggered by that action. The three tests that useissue14307.pdf
are in differentdescribe
blocks and therefore reload the PDF file, so we can simply remove those calls because the inputs are already empty by default.We don't await processing of the sandbox events that occur after switching to another text field. This causes the expectation failure because the typing actions will happen too soon and interfere with the sandbox event processing. We solve the issue by explicitly awaiting the sandbox roundtrip.
Moreover, similar to PR #19001 and #18399 we remove any remaining room for intermittent issues by directly checking for the expected value, which also results in shorter code.
Fixes a part of #18773 (it's also found in the bot logs of #19115).