Replace deprecated nextTick. Test helper for button.