From 94cc774f27215844f40c79571dc9f6d8fecc5208 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Wed, 9 Apr 2025 14:56:13 +1000 Subject: [PATCH] Fix html used in test It get rids of errors, even if they didn't affect the test result it's noise we don't need --- .../stimulus/bulk_form_controller_test.js | 98 ++++++++++--------- 1 file changed, 54 insertions(+), 44 deletions(-) diff --git a/spec/javascripts/stimulus/bulk_form_controller_test.js b/spec/javascripts/stimulus/bulk_form_controller_test.js index 2f1e8ea429..b99e24d581 100644 --- a/spec/javascripts/stimulus/bulk_form_controller_test.js +++ b/spec/javascripts/stimulus/bulk_form_controller_test.js @@ -33,19 +33,21 @@ describe("BulkFormController", () => {
-
- - - - -
-
- -
- + +
+ + + + +
+
+ +
+ +
`; }); @@ -104,13 +106,15 @@ describe("BulkFormController", () => { beforeEach(() => { document.body.innerHTML = `
-
- -
- + +
+ +
+ +
`; }); @@ -131,13 +135,15 @@ describe("BulkFormController", () => { beforeEach(() => { document.body.innerHTML = `
-
- -
- + +
+ +
+ +
`; }); @@ -221,13 +227,15 @@ describe("BulkFormController", () => { beforeEach(() => { document.body.innerHTML = `
-
- An error occurred. - -
-
- -
+ +
+ An error occurred. + +
+
+ +
+
`; @@ -258,16 +266,18 @@ describe("BulkFormController", () => { beforeEach(() => { document.body.innerHTML = `
- - - -
- -
- + +
+ + +
+
+ +
+ +
`; });