diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 11:10:13 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 11:10:13 +0000 |
commit | 0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch) | |
tree | 7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /spec/frontend/notes/components/note_header_spec.js | |
parent | 72123183a20411a36d607d70b12d57c484394c8e (diff) | |
download | gitlab-ce-0ea3fcec397b69815975647f5e2aa5fe944a8486.tar.gz |
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'spec/frontend/notes/components/note_header_spec.js')
-rw-r--r-- | spec/frontend/notes/components/note_header_spec.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/frontend/notes/components/note_header_spec.js b/spec/frontend/notes/components/note_header_spec.js index 310a470aa18..ad2cf1c5a35 100644 --- a/spec/frontend/notes/components/note_header_spec.js +++ b/spec/frontend/notes/components/note_header_spec.js @@ -21,7 +21,7 @@ describe('NoteHeader component', () => { const findActionText = () => wrapper.find({ ref: 'actionText' }); const findTimestampLink = () => wrapper.find({ ref: 'noteTimestampLink' }); const findTimestamp = () => wrapper.find({ ref: 'noteTimestamp' }); - const findConfidentialIndicator = () => wrapper.findByTestId('internalNoteIndicator'); + const findInternalNoteIndicator = () => wrapper.findByTestId('internalNoteIndicator'); const findSpinner = () => wrapper.find({ ref: 'spinner' }); const findAuthorStatus = () => wrapper.find({ ref: 'authorStatus' }); @@ -283,20 +283,20 @@ describe('NoteHeader component', () => { }); }); - describe('with confidentiality indicator', () => { + describe('with internal note badge', () => { it.each` status | condition ${true} | ${'shows'} ${false} | ${'hides'} - `('$condition icon indicator when isConfidential is $status', ({ status }) => { - createComponent({ isConfidential: status }); - expect(findConfidentialIndicator().exists()).toBe(status); + `('$condition badge when isInternalNote is $status', ({ status }) => { + createComponent({ isInternalNote: status }); + expect(findInternalNoteIndicator().exists()).toBe(status); }); - it('shows confidential indicator tooltip for project context', () => { - createComponent({ isConfidential: true, noteableType: 'issue' }); + it('shows internal note badge tooltip for project context', () => { + createComponent({ isInternalNote: true, noteableType: 'issue' }); - expect(findConfidentialIndicator().attributes('title')).toBe( + expect(findInternalNoteIndicator().attributes('title')).toBe( 'This internal note will always remain confidential', ); }); |