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 02c06a50540..b92a9abc220 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 d43c7511638..1a81bb14457 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" );