DEV: replaces jquery call by vanilla js in uploader tests (#14702)
This commit is contained in:
parent
cc68eb825b
commit
c0300b13e3
|
@ -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"
|
||||
);
|
||||
|
|
|
@ -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"
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue