diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-08 12:12:41 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-08 12:12:41 +0000 |
| commit | 8fea353b907d1fd571f5450a757cafee73cfbfd0 (patch) | |
| tree | 38cd1edddd3de94d6f743029c164fab5691a7241 /spec/frontend/diffs/components | |
| parent | db5097a28b061ef273a058aa64845c79635ea4e7 (diff) | |
| download | gitlab-ce-8fea353b907d1fd571f5450a757cafee73cfbfd0.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/diffs/components')
| -rw-r--r-- | spec/frontend/diffs/components/diff_gutter_avatars_spec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/diffs/components/diff_gutter_avatars_spec.js b/spec/frontend/diffs/components/diff_gutter_avatars_spec.js index e95d0656893..ee96b939ec6 100644 --- a/spec/frontend/diffs/components/diff_gutter_avatars_spec.js +++ b/spec/frontend/diffs/components/diff_gutter_avatars_spec.js @@ -1,6 +1,7 @@ import { shallowMount } from '@vue/test-utils'; import { nextTick } from 'vue'; import DiffGutterAvatars from '~/diffs/components/diff_gutter_avatars.vue'; +import { HIDE_COMMENTS } from '~/diffs/i18n'; import discussionsMockData from '../mock_data/diff_discussions'; const getDiscussionsMockData = () => [{ ...discussionsMockData }]; @@ -42,6 +43,11 @@ describe('DiffGutterAvatars', () => { await nextTick(); expect(wrapper.emitted().toggleLineDiscussions).toBeDefined(); }); + + it('renders the proper title and aria-label ', () => { + expect(findCollapseButton().attributes('title')).toBe(HIDE_COMMENTS); + expect(findCollapseButton().attributes('aria-label')).toBe(HIDE_COMMENTS); + }); }); describe('when collapsed', () => { |
