DEV: replaces jquery call by vanilla js in uploader tests (#14702)

DEV: replaces jquery call by vanilla js in uploader tests (#14702)

diff --git a/app/assets/javascripts/discourse/tests/integration/components/image-uploader-test.js b/app/assets/javascripts/discourse/tests/integration/components/image-uploader-test.js
index 02c06a5..b92a9ab 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/image-uploader-test.js
+++ b/app/assets/javascripts/discourse/tests/integration/components/image-uploader-test.js
@@ -38,7 +38,7 @@ discourseModule("Integration | Component | image-uploader", function (hooks) {
       await click(".image-uploader-lightbox-btn");
 
       assert.equal(
-        $(".mfp-container").length,
+        document.querySelectorAll(".mfp-container").length,
         1,
         "it displays the image lightbox"
       );
diff --git a/app/assets/javascripts/discourse/tests/integration/components/uppy-image-uploader-test.js b/app/assets/javascripts/discourse/tests/integration/components/uppy-image-uploader-test.js
index d43c751..1a81bb1 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/uppy-image-uploader-test.js
+++ b/app/assets/javascripts/discourse/tests/integration/components/uppy-image-uploader-test.js
@@ -40,7 +40,7 @@ discourseModule(
         await click(".image-uploader-lightbox-btn");
 
         assert.equal(
-          $(".mfp-container").length,
+          document.querySelectorAll(".mfp-container").length,
           1,
           "it displays the image lightbox"
         );

GitHub sha: c0300b13e3d36a5d7be2a73f7d47fc6658eaa9d5

This commit appears in #14702 which was approved by ZogStriP. It was merged by jjaffeux.