mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Don't run conditionally skipped tests (#31326)
Those still run `QUnit.testStart`/`QUnit.testDone` callbacks, and doing so with no actual test body leads to flaky behavior.
This commit is contained in:
parent
c3109f2ddd
commit
cbe9a9f33b
@ -11,7 +11,7 @@ import { setupApplicationTest } from "ember-qunit";
|
||||
import $ from "jquery";
|
||||
import MessageBus from "message-bus-client";
|
||||
import { resetCache as resetOneboxCache } from "pretty-text/oneboxer";
|
||||
import QUnit, { module, skip, test } from "qunit";
|
||||
import QUnit, { module, test } from "qunit";
|
||||
import sinon from "sinon";
|
||||
import { clearAboutPageActivities } from "discourse/components/about-page";
|
||||
import { resetCardClickListenerSelector } from "discourse/components/card-contents-base";
|
||||
@ -568,8 +568,6 @@ export async function selectText(selector, endOffset = null) {
|
||||
export function conditionalTest(name, condition, testCase) {
|
||||
if (condition) {
|
||||
test(name, testCase);
|
||||
} else {
|
||||
skip(name, testCase);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user