Skip to content

Commit

Permalink
Implement a commit helper function for the freetext integration tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
timvandermeij committed Jan 4, 2025
1 parent 4d4e1be commit e57f2c5
Showing 1 changed file with 58 additions and 278 deletions.
Loading

0 comments on commit e57f2c5

Please sign in to comment.