DEV: Randomize tests order in more cases (#17588)
Previously it would randomize the order only when running tests: 1 .through ember-exam 2. in browser, with no params Running just core tests, or just plugins, or a single plugin, or with filter, etc. disabled randomization. Now all those cases are covered.
This commit is contained in:
parent
8626c99a7d
commit
e509c54b4c
|
@ -38,7 +38,7 @@ document.addEventListener("discourse-booted", () => {
|
|||
setupTests(config.APP);
|
||||
let loader = loadEmberExam();
|
||||
|
||||
if (loader.urlParams.size === 0 && !QUnit.config.seed) {
|
||||
if (QUnit.config.seed === undefined) {
|
||||
// If we're running in browser, default to random order. Otherwise, let Ember Exam
|
||||
// handle randomization.
|
||||
QUnit.config.seed = true;
|
||||
|
|
Loading…
Reference in New Issue