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 integration test "FreeText Editor Paste some html must check that pasting html just keep the text" #17931
Comments
It seems that pdf.js/test/integration/freetext_editor_spec.mjs Line 3622 in e78ce74
and pdf.js/test/integration/test_utils.mjs Line 235 in e78ce74
We could try to increase the default timeout to 500ms. I know that having hardcoded timeout isn't ideal but I cannot image an other solution, I'll try to think about that. |
I think, to buy us time and reduce how often this occurs since it just happened again at http://54.193.163.58:8877/f423fd1265d6552/output.txt, increasing the timeouts in that test to e.g. 200 ms or more could work as a temporary measure. I would feel a bit better about that if the current failures can be reproduced on a Windows system (I currently don't have one around) and to verify that a higher timeout value indeed "fixes" it, instead of us having to try various timeout values experimentally. For the proper fix, we should probably try to remove the |
…txt" integration test This is temporary fix to reduce the number of intermittent failures for this test until we have the permanent fix tracked in mozilla#17931.
…text" integration test This is temporary fix to reduce the number of intermittent failures for this test until we have the permanent fix tracked in mozilla#17931.
…text" integration test This is temporary fix to reduce the number of intermittent failures for this test until we have the permanent fix tracked in mozilla#17931.
The temporary fix of increasing the timeouts sadly didn't do as much as I had hoped (see the PR above), so it looks like we'll have to keep is as is for now and indeed think about the proper fix in the meantime. |
…on tests This commit replaces a `waitForTimeout` occurrence with an equivalent `waitForSelector` expression, and removes two other `waitForTimeout` occurrences that are obsolete because we already wait for an observable event to trigger or class change to happen. Note that the other `waitForTimeout` occurrences in this file are either part of mozilla#17931 or remain until we find a good way to ensure that nothing happened (because currently there is nothing we can await there).
Note that, while this test fails intermittently most often on Windows, it can also occur on Linux. However, the traceback is slightly different and includes an
|
…on tests This commit replaces a `waitForTimeout` occurrence with an equivalent `waitForSelector` expression, and removes two other `waitForTimeout` occurrences that are obsolete because we already wait for an observable event to trigger or class change to happen. Note that the other `waitForTimeout` occurrences in this file are either part of mozilla#17931 or remain until we find a good way to ensure that nothing happened (because currently there is nothing we can await there).
This integration test is quite new, but has failed a couple of times on (as far as I have seen only) the Windows bot now with the following traceback:
The most recent logs can be found here: http://54.193.163.58:8877/d21e23ccf06497a/output.txt
It was introduced in commit 2dbd7ac and it fails at https://github.com/mozilla/pdf.js/blob/master/test/integration/freetext_editor_spec.mjs#L3666-L3667.
@calixteman Do you have an idea why this could be failing intermittently?
The text was updated successfully, but these errors were encountered: