summaryrefslogtreecommitdiff
path: root/spec/frontend/labels/delete_label_modal_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/labels/delete_label_modal_spec.js')
-rw-r--r--spec/frontend/labels/delete_label_modal_spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/labels/delete_label_modal_spec.js b/spec/frontend/labels/delete_label_modal_spec.js
index 67220821fe0..98049538948 100644
--- a/spec/frontend/labels/delete_label_modal_spec.js
+++ b/spec/frontend/labels/delete_label_modal_spec.js
@@ -25,11 +25,11 @@ describe('DeleteLabelModal', () => {
buttons.forEach((x) => {
const button = document.createElement('button');
button.setAttribute('class', 'js-delete-label-modal-button');
- button.dataset.labelName = x.labelName;
- button.dataset.destroyPath = x.destroyPath;
+ button.setAttribute('data-label-name', x.labelName);
+ button.setAttribute('data-destroy-path', x.destroyPath);
if (x.subjectName) {
- button.dataset.subjectName = x.subjectName;
+ button.setAttribute('data-subject-name', x.subjectName);
}
button.innerHTML = 'Action';