Add test case for testing ClickEvent after dragging button (#7690)

Change-Id: I9ecb796a9bcbc8415efe27873fdbd71745d0aa85