diff options
Diffstat (limited to 'spec/frontend/sidebar/confidential/edit_form_spec.js')
-rw-r--r-- | spec/frontend/sidebar/confidential/edit_form_spec.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/frontend/sidebar/confidential/edit_form_spec.js b/spec/frontend/sidebar/confidential/edit_form_spec.js index a22bbe5ae0d..56f163eecd1 100644 --- a/spec/frontend/sidebar/confidential/edit_form_spec.js +++ b/spec/frontend/sidebar/confidential/edit_form_spec.js @@ -12,6 +12,7 @@ describe('Edit Form Dropdown', () => { ...props, isLoading: false, fullPath: '', + issuableType: 'issue', }, }); }; @@ -22,26 +23,26 @@ describe('Edit Form Dropdown', () => { }); describe('when not confidential', () => { - it('renders "You are going to turn off the confidentiality." in the ', () => { + it('renders "You are going to turn on the confidentiality." in the ', () => { createComponent({ - isConfidential: false, + confidential: false, toggleForm, updateConfidentialAttribute, }); - expect(wrapper.find('p').text()).toContain('You are going to turn on the confidentiality.'); + expect(wrapper.element).toMatchSnapshot(); }); }); describe('when confidential', () => { it('renders on or off text based on confidentiality', () => { createComponent({ - isConfidential: true, + confidential: true, toggleForm, updateConfidentialAttribute, }); - expect(wrapper.find('p').text()).toContain('You are going to turn off the confidentiality.'); + expect(wrapper.element).toMatchSnapshot(); }); }); }); |