fixed some failing jasmine tests stemming from previous commit
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Disco DeDisco
2026-04-04 14:54:54 -04:00
parent 4e07fcf38b
commit 96bb05a4ba
4 changed files with 63 additions and 16 deletions

View File

@@ -485,7 +485,7 @@ describe("Tray", () => {
expect(firstCell.classList.contains("arc-in")).toBe(true);
});
it("removes .arc-in and force-closes after animationend", () => {
it("removes .arc-in and closes after animationend", () => {
Tray.placeCard("PC", null);
expect(Tray.isOpen()).toBe(true);
firstCell.dispatchEvent(new Event("animationend"));
@@ -497,6 +497,10 @@ describe("Tray", () => {
let called = false;
Tray.placeCard("PC", () => { called = true; });
firstCell.dispatchEvent(new Event("animationend"));
// Simulate the close transition completing (portrait: 'left' property)
const te = new Event("transitionend");
te.propertyName = "left";
wrap.dispatchEvent(te);
expect(called).toBe(true);
});