Tim van der Meij
28418598e5
Update puppeteer
to version 22.0.0
...
This is a major version bump that requires two changes on our side:
- The new headless mode is now the default, so we can remove our
transformation code (see https://github.com/puppeteer/puppeteer/pull/11815 ).
- The `page.waitForTimeout` API is removed. Sadly we still used it in
the integration tests (but fortunately much less than before we worked
on fixing intermittent failures), so until we remove the final
occurrences we provide an implementation ourselves (see
https://github.com/puppeteer/puppeteer/pull/11780 ).
The full changelog can be found here:
https://github.com/puppeteer/puppeteer/releases/tag/puppeteer-core-v22.0.0
2024-02-10 19:05:36 +01:00
Jonas Jenwald
f9a384d711
Enable the arrow-body-style
ESLint rule
...
This manually ignores some cases where the resulting auto-formatting would not, as far as I'm concerned, constitute a readability improvement or where we'd just end up with more overall indentation.
Please see https://eslint.org/docs/latest/rules/arrow-body-style
2024-01-21 16:20:55 +01:00
Calixte Denizet
17e1519410
[Editor] Init the default highlight color before creating the first editor instance
...
We want to be able to draw an highlight with the default color but without having an
instance of the HighlightEditor.
2024-01-05 17:52:54 +01:00
Tim van der Meij
39a1fc6992
Merge pull request #17400 from calixteman/autoprint_test
...
Set a print listener as soon as possible in the autoprint integration test
2023-12-09 20:12:45 +01:00
Calixte Denizet
82be74d036
Set a print listener as soon as possible in the autoprint integration test
...
This test intermittently fails, likely because the auto-print is triggered fast enough
that we don't manage to get it.
So this patch aims to try to set a listener very early in order to be sure that
we'll be aware that a print has been triggered.
2023-12-09 16:59:43 +01:00
Calixte Denizet
e25cf1ba6f
Don't run beforeunload callback when closing page in integration tests
...
For now, running such callbacks is disabled in Firefox but there are some
plan to reenable them: https://bugzilla.mozilla.org/show_bug.cgi?id=1824220
Having them blocks us to switch to bidi with Chrome.
2023-12-09 14:15:18 +01:00
Calixte Denizet
c63af10191
Use page.evaluateHandle when we want to await on document promises in integration tests
...
For reference: https://github.com/mozilla/pdf.js/pull/17378#issuecomment-1842864939
2023-12-07 17:00:12 +01:00
Calixte Denizet
09b4fe6a30
Get the field name from its parent when it doesn't have one when collecting fields (bug 1864136)
...
Some fields, somewhere under the Fields entry in Acroform, could have no name (in T)
but with a parent which has a name but which isn't somewhere under Fields.
As a side-effect, this patch prevents infinite loops because of potential cycles
under Fields.
2023-11-13 14:41:14 +01:00
Calixte Denizet
66b1a1f34b
Fix the intermittent failures with PageOpen/PageClose test
2023-10-29 20:11:51 +01:00
Calixte Denizet
d72fd9ce4f
Fix intermittents failure on mac
2023-10-27 16:10:06 +02:00
Calixte Denizet
517a262fb1
Fix keyboard shortcuts on mac and for some tests make sure that all
...
the page is displayed in using page-fit in order to make all tested
elements visible.
2023-10-27 16:09:35 +02:00
Jonas Jenwald
9878d058fe
Convert the integration
test-files to JavaScript modules
2023-10-12 13:18:20 +02:00
Jonas Jenwald
33456d3704
Rename the integration
test-files, in preparation for converting them to modules
...
This is done separately to ensure that Git is able to track the history correctly.
2023-10-12 13:17:56 +02:00