GIMP adds UI tests that click through the real interface
GIMP now has UI tests

GIMP now runs automated GUI tests that launch a real, hidden desktop and interact with menus, dialogs, and tools, then verify the results. The 13 initial tests cover startup, file creation and export, color swapping, layers, undo/redo, zoom, tool selection, preferences, and flattening. Because they rely on accessibility data rather than pixels, they also improve screen-reader support. The tests run on Linux CI via dogtail, with a new upstream feature contributed to support headless environments.
But nothing can beat interacting with the real interface.