TestCafe v2.1.0 Release Notes

Release Date: 2022-11-10 // over 1 year ago
  • ๐Ÿ‘Œ Improvements

    ๐Ÿ‘Œ Improved handling of invisible elements

    • โšก๏ธ [Visibility criteria](xref:402833#visibility-criteria) update: TestCafe no longer interacts with elements that have the visibility: collapse attribute.
    • โœ… If the action target does not fit the visibility criteria, TestCafe outputs an error message that references the exact reason. (#7310).

    ๐Ÿ‘Œ Improved handling of overlapped elements

    • โœ… When another element overlaps the center of the action target, TestCafe scans the target element for available points of contact. If the selector timeout ends before TestCafe finds an unobstructed point, TestCafe outputs a warning message and interacts with the topmost element at the center of the original target (#7309).
    • โœ… TestCafe v2.1.0 contains an improved algorithm that detects whether extra scrolling can resolve an element obstruction issue. (#6208)

    ๐Ÿ› Bug Fixes

    • โœ… In some environments, TestCafe cannot take screenshots when the test runs in a headless Chromium-based browser (#7224).
    • โœ… Full-page screenshots in headless Chrome do not include the edges of the page (#5961).
    • โœ… TestCafe throws the "TypeError: Illegal invocation" error when the front-end code passes a number value to the Element.insertAdjacentText method (#7352).

Previous changes from v2.0.2

  • ๐Ÿ› Bug Fixes

    • โœ… TestCafe doesn't include the flags necessary to launch Chrome in a Podman container (PR #7307 by @timnederhoff)
    • โœ… TestCafe doesn't warn users when it interacts with an element that obstructs the original action target (#2930)
    • โœ… TestCafe incorrectly parses regular expressions passed to the --skip-js-errors CLI flag (#7301)