Commit e5deffc4 authored by Tom Quirk's avatar Tom Quirk

Re-add js-user-link to design note

parent 6fe83a71
...@@ -102,6 +102,7 @@ export default { ...@@ -102,6 +102,7 @@ export default {
<gl-link <gl-link
v-once v-once
:href="author.webUrl" :href="author.webUrl"
class="js-user-link"
data-testid="user-link" data-testid="user-link"
:data-user-id="authorId" :data-user-id="authorId"
:data-username="author.username" :data-username="author.username"
......
...@@ -24,6 +24,7 @@ exports[`Design note component should match the snapshot 1`] = ` ...@@ -24,6 +24,7 @@ exports[`Design note component should match the snapshot 1`] = `
> >
<div> <div>
<gl-link-stub <gl-link-stub
class="js-user-link"
data-testid="user-link" data-testid="user-link"
data-user-id="1" data-user-id="1"
data-username="foo-bar" data-username="foo-bar"
......
...@@ -41,7 +41,7 @@ describe('Shortcuts', () => { ...@@ -41,7 +41,7 @@ describe('Shortcuts', () => {
).toHaveBeenCalled(); ).toHaveBeenCalled();
}); });
it('focues preview button inside edit comment form', () => { it('focuses preview button inside edit comment form', () => {
document.querySelector('.js-note-edit').click(); document.querySelector('.js-note-edit').click();
Shortcuts.toggleMarkdownPreview( Shortcuts.toggleMarkdownPreview(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment