Fix hint helper alert
Change-Id: I6e1ac9fa03f62bd25b1139764d727922a5f61c20
diff --git a/dev/js/spec/hintSpec.js b/dev/js/spec/hintSpec.js
index e98b92a..3b07bd9 100644
--- a/dev/js/spec/hintSpec.js
+++ b/dev/js/spec/hintSpec.js
@@ -271,6 +271,14 @@
expect(hint.alert().active).toBeTruthy();
expect(hint.active()).toBeTruthy();
+ // Show again with the same message
+ expect(hint.alert().active).toBeTruthy();
+ hint.update();
+ expect(hint.alert().active).toBeFalsy();
+ hint.alert().show();
+ expect(hint.alert().active).toBeTruthy();
+ expect(hint.alert().element().textContent).toEqual("That does not work!");
+
// Show menu, hide alert!
hint.show(false);
});