test(toast): use .find instead of .querySelector since we have jQuery
test(dialog): add unit tests
refactor(button): make inner element width and height be auto