Skip to content

A platform for community discussion. Free, open, simple.

DEV: Skip flaky human-activity-tracker interaction events test (#41331)

Alan Guo Xiang Tan170d11e1e191
diff --git a/frontend/discourse/tests/unit/services/human-activity-tracker-test.js b/frontend/discourse/tests/unit/services/human-activity-tracker-test.js
index ad1f907c360..730242c3796 100644
--- a/frontend/discourse/tests/unit/services/human-activity-tracker-test.js
+++ b/frontend/discourse/tests/unit/services/human-activity-tracker-test.js
@@ -1,6 +1,6 @@
import { triggerEvent } from "@ember/test-helpers";
import { setupTest } from "ember-qunit";
-import { module, test } from "qunit";
+import { module, skip, test } from "qunit";
import sinon from "sinon";
import { processBrowserAttentionChange } from "discourse/lib/user-presence";
@@ -67,7 +67,8 @@ module("Unit | Service | human-activity-tracker", function (hooks) {
assert.strictEqual(this.sent.length, 0);
});
- test("counts interaction events and reports them on flush", async function (assert) {
+ // TODO: Flaky, skipped while investigating a global getBoundingClientRect error.
+ skip("counts interaction events and reports them on flush", async function (assert) {
await triggerEvent(document.body, "keydown");
await triggerEvent(document.body, "mousedown");
await triggerEvent(document.body, "scroll");