summaryrefslogtreecommitdiff
path: root/spec/javascripts/pages/labels
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2018-03-13 10:36:13 -0600
committerJose Ivan Vargas <jvargas@gitlab.com>2018-03-28 14:18:09 -0500
commit1f026738675317a86b19d88900eafe24243b8c8b (patch)
tree9c1f0500e122b1bcf58832dfc68d1ccc4167db8e /spec/javascripts/pages/labels
parentfe5f7390f036234192f4bee7f21f7795a0b992e0 (diff)
downloadgitlab-ce-1f026738675317a86b19d88900eafe24243b8c8b.tar.gz
Fix promoting labels and milestones copy text
Diffstat (limited to 'spec/javascripts/pages/labels')
-rw-r--r--spec/javascripts/pages/labels/components/promote_label_modal_spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/javascripts/pages/labels/components/promote_label_modal_spec.js b/spec/javascripts/pages/labels/components/promote_label_modal_spec.js
index 080158a8ee0..a24f8204fe1 100644
--- a/spec/javascripts/pages/labels/components/promote_label_modal_spec.js
+++ b/spec/javascripts/pages/labels/components/promote_label_modal_spec.js
@@ -12,6 +12,7 @@ describe('Promote label modal', () => {
labelColor: '#5cb85c',
labelTextColor: '#ffffff',
url: `${gl.TEST_HOST}/dummy/promote/labels`,
+ groupName: 'group',
};
describe('Modal title and description', () => {
@@ -24,7 +25,7 @@ describe('Promote label modal', () => {
});
it('contains the proper description', () => {
- expect(vm.text).toContain('Promoting this label will make it available for all projects inside the group');
+ expect(vm.text).toContain(`Promoting ${labelMockData.labelTitle} will make it available for all projects inside ${labelMockData.groupName}`);
});
it('contains a label span with the color', () => {