mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-06 21:00:24 -04:00
fix(curriculum): fix test lab lightbox viewer (#66909)
This commit is contained in:
@@ -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");
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user