mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
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");
|
await click(".image-uploader-lightbox-btn");
|
||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
$(".mfp-container").length,
|
document.querySelectorAll(".mfp-container").length,
|
||||||
1,
|
1,
|
||||||
"it displays the image lightbox"
|
"it displays the image lightbox"
|
||||||
);
|
);
|
||||||
|
@ -40,7 +40,7 @@ discourseModule(
|
|||||||
await click(".image-uploader-lightbox-btn");
|
await click(".image-uploader-lightbox-btn");
|
||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
$(".mfp-container").length,
|
document.querySelectorAll(".mfp-container").length,
|
||||||
1,
|
1,
|
||||||
"it displays the image lightbox"
|
"it displays the image lightbox"
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user