mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:16:08 +08:00
Revert "Revert "DEV: Run Ember CLI tests in random order" (#15717)"
The worst of the flaky tests should be fixed now, so let's re-enable this.
This commit is contained in:
parent
2fc8e923b6
commit
14d31417de
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
|
@ -232,15 +232,15 @@ jobs:
|
|||
|
||||
- name: Core QUnit 1
|
||||
working-directory: ./app/assets/javascripts/discourse
|
||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=1 --launch "${{ matrix.browser }}"
|
||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=1 --launch "${{ matrix.browser }}" --random
|
||||
timeout-minutes: 20
|
||||
|
||||
- name: Core QUnit 2
|
||||
working-directory: ./app/assets/javascripts/discourse
|
||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=2 --launch "${{ matrix.browser }}"
|
||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=2 --launch "${{ matrix.browser }}" --random
|
||||
timeout-minutes: 20
|
||||
|
||||
- name: Core QUnit 3
|
||||
working-directory: ./app/assets/javascripts/discourse
|
||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=3 --launch "${{ matrix.browser }}"
|
||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=3 --launch "${{ matrix.browser }}" --random
|
||||
timeout-minutes: 20
|
||||
|
|
|
@ -34,6 +34,13 @@ document.addEventListener("discourse-booted", () => {
|
|||
setup(QUnit.assert);
|
||||
setupTests(config.APP);
|
||||
let loader = loadEmberExam();
|
||||
|
||||
if (loader.urlParams.size === 0 && !QUnit.config.seed) {
|
||||
// If we're running in browser, default to random order. Otherwise, let Ember Exam
|
||||
// handle randomization.
|
||||
QUnit.config.seed = true;
|
||||
}
|
||||
|
||||
loader.loadModules();
|
||||
start({
|
||||
setupTestContainer: false,
|
||||
|
|
Loading…
Reference in New Issue
Block a user