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

This commit is contained in:
Joffrey JAFFEUX 2021-10-25 10:49:14 +02:00 committed by GitHub
parent cc68eb825b
commit c0300b13e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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"
);

View File

@ -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"
);