Segment Ember CLI tests

Note `/topics/bulk` missing the first slash seems to expose an error not
present without segmentation.
This commit is contained in:
Robin Ward 2021-11-11 16:49:24 -05:00
parent 2971d03307
commit f1178514fa
2 changed files with 19 additions and 3 deletions

View File

@ -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

View File

@ -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] });
});
});