summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2016-12-13 17:52:07 -0200
committerAnike Arni <aarni@thoughtworks.com>2016-12-14 15:46:25 -0200
commitb60c54f2b46e8b219963c2c0730e2095d7a69cb7 (patch)
treef9efe13b588f6a92155daf265a5442e3aa86f4b9 /web-ui/test
parent66a01bde2bd8c54fd830ff94443fc860a549bc3c (diff)
[#845] Doesn't hide tag button when adding new tag
with @thaissiqueira
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/mail_view/ui/mail_view.spec.js9
1 files changed, 2 insertions, 7 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 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() {