A platform for community discussion. Free, open, simple.
FIX: Skip reaction animations in system test environment (#38936)
Isaac Janzenee053aee95f7
diff --git a/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjs b/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjsindex 32309c9ce13..6220d92bdef 100644--- a/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjs+++ b/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjs@@ -18,7 +18,7 @@ import curryComponent from "ember-curry-component";import $ from "jquery";import { Promise } from "rsvp";import lazyHash from "discourse/helpers/lazy-hash";-import { isTesting } from "discourse/lib/environment";+import { isRailsTesting, isTesting } from "discourse/lib/environment";import { emojiUrlFor } from "discourse/lib/text";import closeOnClickOutside from "discourse/modifiers/close-on-click-outside";import { and, eq, not } from "discourse/truth-helpers";@@ -56,7 +56,7 @@ function moveReactionAnimation(endPosition,complete) {- if (isTesting()) {+ if (isTesting() || isRailsTesting()) {return run(complete);}@@ -95,7 +95,7 @@ function dropReaction(list, reactionId, complete) {}function scaleReactionAnimation(mainReaction, start, end, complete) {- if (isTesting()) {+ if (isTesting() || isRailsTesting()) {return run(this, complete);}