Refactoring testing code and testing ui cancel buttons

- Test for cancel button behavior on dialogs
- Added select-menu and transition to tests
- Refactored for clarity and abstracted:
  - About dialog
  - Ok-Cancel dialog
- Some follow-ups from previous PR

@devoncarew @dinhviethoa