fix(curriculum): fix test lab lightbox viewer (#66909)

This commit is contained in:
Aditya Singh
2026-04-15 17:40:11 +05:30
committed by GitHub
parent fb9f6230f5
commit be5bcd1260

View File

@@ -178,7 +178,7 @@ function getComputedDisplay(element) {
assert.strictEqual(getComputedDisplay(lightbox), "none");
const galleryItem = document.querySelector(".gallery-item");
galleryItem.dispatchEvent(new Event("click"));
galleryItem.dispatchEvent(new Event("click", { bubbles: true }));
assert.strictEqual(getComputedDisplay(lightbox), "flex");
```