-
Notifications
You must be signed in to change notification settings - Fork 10k
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 the "copy/paste from a tab to an other" stamp editor integration test #18320
Fix the "copy/paste from a tab to an other" stamp editor integration test #18320
Conversation
…test This integration test contains three issues: - The `page.bringToFront()` call is not awaited, even though it returns a promise (see https://pptr.dev/api/puppeteer.page.bringtofront). Note that in other tests we do this correctly already. - The `page.waitForSelector()` call at the end is unnecessary because that exact condition is already checked at the end of the `waitForImage` function we call just before this line; see https://github.com/mozilla/pdf.js/blob/master/test/integration/stamp_editor_spec.mjs#L74. - The pages should be closed in reversed order; please refer to the description in mozilla#18318 for more details. Fixes mozilla#18318.
ddd6b17
to
287fd6a
Compare
/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/5090ceb5534315e/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/734ac728ea3a4e0/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/734ac728ea3a4e0/output.txt Total script time: 7.75 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/5090ceb5534315e/output.txt Total script time: 18.54 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!
This integration test contains three issues:
page.bringToFront()
call is not awaited, even though it returns a promise (see https://pptr.dev/api/puppeteer.page.bringtofront). Note that in other tests we do this correctly already.page.waitForSelector()
call at the end is unnecessary because that exact condition is already checked at the end of thewaitForImage
function we call just before this line; see https://github.com/mozilla/pdf.js/blob/master/test/integration/stamp_editor_spec.mjs#L74.Fixes #18318.