diff options
Diffstat (limited to 'web-ui/test')
-rw-r--r-- | web-ui/test/spec/mail_view/ui/mail_view.spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web-ui/test/spec/mail_view/ui/mail_view.spec.js b/web-ui/test/spec/mail_view/ui/mail_view.spec.js index 36b58b87..58577f90 100644 --- a/web-ui/test/spec/mail_view/ui/mail_view.spec.js +++ b/web-ui/test/spec/mail_view/ui/mail_view.spec.js @@ -41,6 +41,13 @@ describeComponent('mail_view/ui/mail_view', function () { expect(updateSpy).toHaveBeenTriggeredOn(document); }); + it('remove tag triggers refreshTagList event', function(){ + var refreshTagListEvent = spyOnEvent(document, Pixelated.events.dispatchers.tags.refreshTagList); + this.component.displayMail({}, testData); + this.component.removeTag('inbox'); + expect(refreshTagListEvent).toHaveBeenTriggeredOn(document); + }); + it('verifies if new tag input is hidden when rendering mail view', function() { this.component.displayMail({}, testData); |