The Semantics widget provides a number of callbacks for user actions, like onDidGainAccessibilityFocus & onDidLoseAccessibilityFocus, onTap, onLongPress and more. To be able to test the side-effects, like showing a SnackBar when onTap is called, we need some way to trigger these actions in widget tests. Sample App The app is quite simple…