mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
The ink editor integration tests already use a helper function for committing the editor, so this commit mirrors the approach to the freetext editor integration tests. This has multiple advantages: - it improves consistency between the various editor integration tests; - it makes the code easier to read/understand; - it reduces code duplication (220 lines of code removed); - it reduces the number of `getEditorSelector` calls (32 calls removed) that contained hardcoded IDs, which helps to isolate the tests and to simplify follow-up patches.