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
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/notes/components/note_actions_spec.js')
-rw-r--r--spec/frontend/notes/components/note_actions_spec.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/frontend/notes/components/note_actions_spec.js b/spec/frontend/notes/components/note_actions_spec.js
index cc41088e21e..ecce854b00a 100644
--- a/spec/frontend/notes/components/note_actions_spec.js
+++ b/spec/frontend/notes/components/note_actions_spec.js
@@ -151,6 +151,22 @@ describe('noteActions', () => {
const assignUserButton = wrapper.find('[data-testid="assign-user"]');
expect(assignUserButton.exists()).toBe(false);
});
+
+ it('should render the correct (unescaped) name in the Resolved By tooltip', () => {
+ const complexUnescapedName = 'This is a Ǝ\'𝞓\'E "cat"?';
+ wrapper = mountNoteActions({
+ ...props,
+ canResolve: true,
+ isResolving: false,
+ isResolved: true,
+ resolvedBy: {
+ name: complexUnescapedName,
+ },
+ });
+
+ const { resolveButton } = wrapper.vm.$refs;
+ expect(resolveButton.$el.getAttribute('title')).toBe(`Resolved by ${complexUnescapedName}`);
+ });
});
});