update deps and fix animateCSS_spec test (#3811)

- animateCSS_spec test did throw errors at least with newest
dependencies (running locally or on gitlab)
- dependency updates: New jest v30 breaks our tests so we have to stay
with v29 until fixed (will take a look)
This commit is contained in:
Karsten Hassel
2025-06-19 07:35:42 +02:00
committed by GitHub
parent 6501aabd2d
commit ee874836fe
4 changed files with 677 additions and 547 deletions

View File

@@ -23,18 +23,18 @@ describe("AnimateCSS integration Test", () => {
let styles = window.getComputedStyle(elem);
if (animationIn && animationIn !== "") {
expect(styles._values["animation-name"]).toBe(animationIn);
expect(styles._values.get("animation-name")).toBe(animationIn);
} else {
expect(styles._values["animation-name"]).toBeUndefined();
expect(styles._values.get("animation-name")).toBeUndefined();
}
if (animationOut && animationOut !== "") {
elem = await helpers.waitForElement(`.compliments.animate__animated.animate__${animationOut}`);
expect(elem).not.toBeNull();
styles = window.getComputedStyle(elem);
expect(styles._values["animation-name"]).toBe(animationOut);
expect(styles._values.get("animation-name")).toBe(animationOut);
} else {
expect(styles._values["animation-name"]).toBeUndefined();
expect(styles._values.get("animation-name")).toBeUndefined();
}
return true;
};