How can I write good test cases for UI testing?

I want to know how can I write good test cases for UI testing. Can anyone please help me out with it.