summaryrefslogtreecommitdiff
path: root/spec/frontend/vue_shared/components/header_ci_component_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/vue_shared/components/header_ci_component_spec.js')
-rw-r--r--spec/frontend/vue_shared/components/header_ci_component_spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/vue_shared/components/header_ci_component_spec.js b/spec/frontend/vue_shared/components/header_ci_component_spec.js
index aea76f164f0..94e1ece8c6b 100644
--- a/spec/frontend/vue_shared/components/header_ci_component_spec.js
+++ b/spec/frontend/vue_shared/components/header_ci_component_spec.js
@@ -84,11 +84,12 @@ describe('Header CI Component', () => {
expect(findUserLink().text()).toContain(defaultProps.user.username);
});
- it('has the correct data attributes', () => {
+ it('has the correct HTML attributes', () => {
expect(findUserLink().attributes()).toMatchObject({
'data-user-id': defaultProps.user.id.toString(),
'data-username': defaultProps.user.username,
'data-name': defaultProps.user.name,
+ href: defaultProps.user.web_url,
});
});