diff options
Diffstat (limited to 'web-ui/test/spec/page')
-rw-r--r-- | web-ui/test/spec/page/pane_contract_expand.spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
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); |