From f1178514fa16a337a57d56fce319380100bc58fc Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 11 Nov 2021 16:49:24 -0500 Subject: [PATCH] Segment Ember CLI tests Note `/topics/bulk` missing the first slash seems to expose an error not present without segmentation. --- .github/workflows/ember.yml | 20 +++++++++++++++++-- .../acceptance/user-activity-topic-test.js | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ember.yml b/.github/workflows/ember.yml index 8c7148182c0..f2f17a729c9 100644 --- a/.github/workflows/ember.yml +++ b/.github/workflows/ember.yml @@ -49,7 +49,23 @@ jobs: working-directory: ./app/assets/javascripts/discourse run: yarn install - - name: Core QUnit + - name: Ember Build working-directory: ./app/assets/javascripts/discourse - run: sudo -E -u discourse -H yarn ember test --launch "${{ matrix.browser }}" + run: | + sudo -E -u discourse mkdir /tmp/emberbuild + sudo -E -u discourse -H yarn ember build --environment=test -o /tmp/emberbuild + + - 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 }}" + timeout-minutes: 60 + + - 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 }}" + timeout-minutes: 60 + + - 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 }}" timeout-minutes: 60 diff --git a/app/assets/javascripts/discourse/tests/acceptance/user-activity-topic-test.js b/app/assets/javascripts/discourse/tests/acceptance/user-activity-topic-test.js index 623d68f7de1..e669d1e20b0 100644 --- a/app/assets/javascripts/discourse/tests/acceptance/user-activity-topic-test.js +++ b/app/assets/javascripts/discourse/tests/acceptance/user-activity-topic-test.js @@ -11,7 +11,7 @@ acceptance("User Activity / Topics - bulk actions", function (needs) { return helper.response(userFixtures["/topics/created-by/eviltrout.json"]); }); - server.put("topics/bulk", () => { + server.put("/topics/bulk", () => { return helper.response({ topic_ids: [7764, 9318] }); }); });