summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-16 14:46:15 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-16 14:46:21 -0300
commitab4387345975cde8681c6af4ee92a10dc7e3be8e (patch)
treeaa8a14e1ec64607c9f40cf85afee351b97eaeb95 /web-ui/test
parent660e0d9de3188bad894b73f7f0ae236d5313b715 (diff)
#442 Renames feedback box file and improve feedback box html.
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js2
-rw-r--r--web-ui/test/spec/page/pane_contract_expand.spec.js7
2 files changed, 8 insertions, 1 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 1270fc4c..6622cc19 100644
--- a/web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js
+++ b/web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js
@@ -54,7 +54,7 @@ describeComponent('dispatchers/right_pane_dispatcher', function () {
});
it('listens to open feedback event and open feedback box', function () {
- var feedbackBox = require('mail_view/ui/compose_feedback');
+ var feedbackBox = require('mail_view/ui/feedback_box');
spyOn(feedbackBox, 'attachTo');
this.component.trigger(document, Pixelated.events.ui.feedback.open);
diff --git a/web-ui/test/spec/page/pane_contract_expand.spec.js b/web-ui/test/spec/page/pane_contract_expand.spec.js
index 4f4ff49b..0320705f 100644
--- a/web-ui/test/spec/page/pane_contract_expand.spec.js
+++ b/web-ui/test/spec/page/pane_contract_expand.spec.js
@@ -44,6 +44,13 @@ describeComponent('page/pane_contract_expand', function () {
expect($('#right-pane').attr('class')).toEqual(this.component.attr.RIGHT_PANE_EXPAND_CLASSES);
});
+ it('contracts middle pane and expands right pane on open draft', function () {
+ $(document).trigger(Pixelated.events.ui.feedback.open);
+
+ expect($('#middle-pane-container').attr('class')).toEqual(this.component.attr.MIDDLE_PANE_CONTRACT_CLASSES);
+ expect($('#right-pane').attr('class')).toEqual(this.component.attr.RIGHT_PANE_EXPAND_CLASSES);
+ });
+
it('expands middle pane and contracts right pane on event on open no message selected pane', function () {
$(document).trigger(Pixelated.events.dispatchers.rightPane.openNoMessageSelected);