From b60c54f2b46e8b219963c2c0730e2095d7a69cb7 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Tue, 13 Dec 2016 17:52:07 -0200 Subject: [#845] Doesn't hide tag button when adding new tag with @thaissiqueira --- web-ui/test/spec/mail_view/ui/mail_view.spec.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'web-ui/test/spec/mail_view/ui/mail_view.spec.js') 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 f44d71ee..438df57f 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 @@ -79,23 +79,20 @@ describeComponent('mail_view/ui/mail_view', function () { }); it('verifies if new tag input is hidden when rendering mail view', function() { - this.component.displayMail({}, testData); var newTagInputComponent = this.component.select('newTagInput'); expect(newTagInputComponent.attr('style').trim()).toEqual('display: none;'); }); - it('verifies if new tag input is shown when clicking on new tag button ', function() { - this.component.displayMail({}, testData); + it('verifies if new tag input is shown when clicking on new tag button', function() { + this.component.displayMail({}, testData); var newTagInputComponent = this.component.select('newTagInput'); - var addNewComponent = this.component.select('addNew'); this.component.select('newTagButton').click(); expect(newTagInputComponent.attr('style').trim()).not.toEqual('display: none;'); - expect(addNewComponent.attr('style').trim()).toEqual('display: none;'); }); it('hides new tag button when pressing esc key', function(){ @@ -104,12 +101,10 @@ describeComponent('mail_view/ui/mail_view', function () { var e = creatingEvent('keydown', 27); var newTagInputComponent = this.component.select('newTagInput'); - var addNewComponent = this.component.select('addNew'); newTagInputComponent.trigger(e); expect(newTagInputComponent.attr('style').trim()).toEqual('display: none;'); - expect(addNewComponent.attr('style').trim()).not.toEqual('display: none;'); }); it('assumes that the mail is encrypted and valid if at least one of the locks are valid', function() { -- cgit v1.2.3