Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-06-20 14:23:21 +0300
committerkushalpandya <kushal@gitlab.com>2017-06-20 14:37:23 +0300
commitfeeba2ec19cbab0baa2735a30c752ac43a56a343 (patch)
treefc8a5dae55223f103983ea7355273c403d39af6a /spec
parent9a415064c03ed6e18719209e51eed92d712e120c (diff)
Merge branch 'issue-task-status-fix' into 'master'
Stop showing task status if no tasks are present Closes #33880 See merge request !12303
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/issue_show/components/description_spec.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/javascripts/issue_show/components/description_spec.js b/spec/javascripts/issue_show/components/description_spec.js
index 886462c4b9a..f3fdbff01a6 100644
--- a/spec/javascripts/issue_show/components/description_spec.js
+++ b/spec/javascripts/issue_show/components/description_spec.js
@@ -95,6 +95,18 @@ describe('Description component', () => {
done();
});
});
+
+ it('clears task status text when no tasks are present', (done) => {
+ vm.taskStatus = '0 of 0';
+
+ setTimeout(() => {
+ expect(
+ document.querySelector('.issuable-meta #task_status').textContent.trim(),
+ ).toBe('');
+
+ done();
+ });
+ });
});
it('applies syntax highlighting and math when description changed', (done) => {