@todo If the buttons occur on a new line, we need to fix the div replacement in the regular expression to not consider '--' as a div (comments cause this problem)
@todo the click event if fired for the button which is disabled, it should not be triggered.

Scenarios to check:-

1. When button is created programatically, the css is not being set
2. When button text is changed programtically the css should NOT reset

To programattically test the button, in the consolde type the following:

b = UcpComponentSupport.getAllUcpViews()[0]

b.ucpComponent.setButtonText("Hello World") <-- should change the text to Hello World

b.ucpComponent.setButtonType("btn-success") <-- should change the button style to green color button

b.ucpComponent.setButtonText("Hello Lucy !") <--button text should be 'Hello Lucy !' and should also maintain the green color