- Designer -> Buttons -> Create a new button
- Click "Discard"
- (There's a confirmation pop-up, click "Yes")
Result: the validation prevents you from discarding changes:
The name cannot be empty."
Bonus: try navigating to existing Button definitions, the validation error stays on the screen.