diff options
Diffstat (limited to 'spec/frontend/users_select')
-rw-r--r-- | spec/frontend/users_select/test_helper.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/users_select/test_helper.js b/spec/frontend/users_select/test_helper.js index 9231e38ea90..59edde48eab 100644 --- a/spec/frontend/users_select/test_helper.js +++ b/spec/frontend/users_select/test_helper.js @@ -95,10 +95,10 @@ export const setAssignees = (...users) => { const input = document.createElement('input'); input.name = 'merge_request[assignee_ids][]'; input.value = user.id.toString(); - input.dataset.avatarUrl = user.avatar_url; - input.dataset.name = user.name; - input.dataset.username = user.username; - input.dataset.canMerge = user.can_merge; + input.setAttribute('data-avatar-url', user.avatar_url); + input.setAttribute('data-name', user.name); + input.setAttribute('data-username', user.username); + input.setAttribute('data-can-merge', user.can_merge); return input; }), ); |