summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-15 16:37:24 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-15 17:06:54 -0300
commit78ece9852d5584e0681b4fffd91c704bd9919a1c (patch)
tree8ecdaa91fb1903c4d67a04614300de84171d8d4d /web-ui/test
parent75eafc2b5dfa7fa4eaa2a1770fbfcb628727ee47 (diff)
#442 adds feedback compose box component.
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js b/web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js
index 4187610e..f5386b85 100644
--- a/web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js
+++ b/web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js
@@ -53,6 +53,15 @@ describeComponent('dispatchers/right_pane_dispatcher', function () {
expect(pushStateEvent).toHaveBeenTriggeredOnAndWith(document, jasmine.objectContaining({ isDisplayNoMessageSelected: true }));
});
+ it('listens to open feedback event and open feedback box', function () {
+ var feedbackBox = require('feedback/compose_feedback');
+ spyOn(feedbackBox, 'attachTo');
+
+ this.component.trigger(document, Pixelated.events.ui.feedback.open);
+
+ expect(feedbackBox.attachTo).toHaveBeenCalled();
+ });
+
});
@@ -66,6 +75,7 @@ describeComponent('dispatchers/right_pane_dispatcher', function () {
});
});
+
describe('on initialization', function () {
var noMessageSelectedPane;