@projectcaluma/ember-testing 11.0.0-beta.2 → 11.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/addon/scenarios/distribution.js +53 -25
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@projectcaluma/ember-testing-v11.0.0-beta.3](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-testing-v11.0.0-beta.2...@projectcaluma/ember-testing-v11.0.0-beta.3) (2022-02-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **distribution:** add index page when no inquiries exist ([689089c](https://github.com/projectcaluma/ember-caluma/commit/689089c8f28146a33346f382fe69e7ca1b588d97))
|
|
7
|
+
|
|
1
8
|
# [@projectcaluma/ember-testing-v11.0.0-beta.2](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-testing-v11.0.0-beta.1...@projectcaluma/ember-testing-v11.0.0-beta.2) (2022-02-07)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -192,6 +192,7 @@ export function reviseInquiry(server, { inquiry }) {
|
|
|
192
192
|
|
|
193
193
|
export function createCase(server, { group }) {
|
|
194
194
|
const distributionCase = server.create("case", {
|
|
195
|
+
id: "4222ab21-9c89-47de-98be-d62a8ed0ebeb",
|
|
195
196
|
status: "RUNNING",
|
|
196
197
|
workflowId: "distribution",
|
|
197
198
|
});
|
|
@@ -228,30 +229,30 @@ export default function (server, groups) {
|
|
|
228
229
|
const confirm = (...args) => confirmInquiry(...args);
|
|
229
230
|
const revise = (...args) => reviseInquiry(server, ...args);
|
|
230
231
|
|
|
231
|
-
const distributionCase = createCase(server, { group:
|
|
232
|
-
|
|
233
|
-
server.create("work-item", {
|
|
234
|
-
taskId: "create-inquiry",
|
|
235
|
-
status: "READY",
|
|
236
|
-
addressedGroups: [g.id],
|
|
237
|
-
});
|
|
232
|
+
const distributionCase = createCase(server, { group: g });
|
|
238
233
|
|
|
239
234
|
// controlling
|
|
240
235
|
create({ from: g, to: g1 });
|
|
241
236
|
send({
|
|
242
|
-
inquiry: create(
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
237
|
+
inquiry: create(
|
|
238
|
+
{
|
|
239
|
+
from: g,
|
|
240
|
+
to: g2,
|
|
241
|
+
deadline: faker.date.past(),
|
|
242
|
+
},
|
|
243
|
+
{ id: "6bbdc36a-3174-4578-93d4-0cb84d3dab97" }
|
|
244
|
+
),
|
|
247
245
|
});
|
|
248
246
|
confirm({
|
|
249
247
|
inquiry: answer({
|
|
250
|
-
inquiry: create(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
248
|
+
inquiry: create(
|
|
249
|
+
{
|
|
250
|
+
from: g,
|
|
251
|
+
to: g3,
|
|
252
|
+
deadline: faker.date.past(),
|
|
253
|
+
},
|
|
254
|
+
{ id: "88999388-daf2-4a18-b7e2-50373d082331" }
|
|
255
|
+
),
|
|
255
256
|
status: "inquiry-answer-status-needs-interaction",
|
|
256
257
|
}),
|
|
257
258
|
});
|
|
@@ -259,7 +260,13 @@ export default function (server, groups) {
|
|
|
259
260
|
// "override" third controlling inquiry
|
|
260
261
|
confirm({
|
|
261
262
|
inquiry: answer({
|
|
262
|
-
inquiry: create(
|
|
263
|
+
inquiry: create(
|
|
264
|
+
{ from: g, to: g3 },
|
|
265
|
+
{
|
|
266
|
+
id: "75d56729-5518-469d-ae66-188a5c32d59d",
|
|
267
|
+
createdAt: faker.date.recent(),
|
|
268
|
+
}
|
|
269
|
+
),
|
|
263
270
|
status: "inquiry-answer-status-positive",
|
|
264
271
|
}),
|
|
265
272
|
});
|
|
@@ -267,7 +274,10 @@ export default function (server, groups) {
|
|
|
267
274
|
// addressed
|
|
268
275
|
confirm({
|
|
269
276
|
inquiry: answer({
|
|
270
|
-
inquiry: create(
|
|
277
|
+
inquiry: create(
|
|
278
|
+
{ from: g2, to: g },
|
|
279
|
+
{ id: "e907584c-a38a-488e-80f7-bab6bb22f303" }
|
|
280
|
+
),
|
|
271
281
|
status: "inquiry-answer-status-needs-interaction",
|
|
272
282
|
}),
|
|
273
283
|
});
|
|
@@ -279,22 +289,34 @@ export default function (server, groups) {
|
|
|
279
289
|
to: g,
|
|
280
290
|
deadline: DateTime.now().plus({ days: 2 }).toJSDate(),
|
|
281
291
|
},
|
|
282
|
-
{
|
|
292
|
+
{
|
|
293
|
+
id: "4889435d-f310-472f-808b-7b20936c40fc",
|
|
294
|
+
createdAt: faker.date.recent(),
|
|
295
|
+
}
|
|
283
296
|
),
|
|
284
297
|
});
|
|
285
298
|
confirm({
|
|
286
299
|
inquiry: answer({
|
|
287
|
-
inquiry: create(
|
|
300
|
+
inquiry: create(
|
|
301
|
+
{ from: g4, to: g },
|
|
302
|
+
{ id: "4c5dbcc3-f42a-4c25-8d06-f85bd17edbf2" }
|
|
303
|
+
),
|
|
288
304
|
status: "inquiry-answer-status-negative",
|
|
289
305
|
}),
|
|
290
306
|
});
|
|
291
307
|
answer({
|
|
292
|
-
inquiry: create(
|
|
308
|
+
inquiry: create(
|
|
309
|
+
{ from: g3, to: g },
|
|
310
|
+
{ id: "3f7eea45-251d-4934-81fd-27c78bbca88c" }
|
|
311
|
+
),
|
|
293
312
|
status: "inquiry-answer-status-positive",
|
|
294
313
|
});
|
|
295
314
|
revise({
|
|
296
315
|
inquiry: answer({
|
|
297
|
-
inquiry: create(
|
|
316
|
+
inquiry: create(
|
|
317
|
+
{ from: g1, to: g },
|
|
318
|
+
{ id: "dd07b1a4-91e6-4411-a4ea-445637690577" }
|
|
319
|
+
),
|
|
298
320
|
status: "inquiry-answer-status-needs-interaction",
|
|
299
321
|
}),
|
|
300
322
|
});
|
|
@@ -302,13 +324,19 @@ export default function (server, groups) {
|
|
|
302
324
|
// more
|
|
303
325
|
confirm({
|
|
304
326
|
inquiry: answer({
|
|
305
|
-
inquiry: create(
|
|
327
|
+
inquiry: create(
|
|
328
|
+
{ from: g2, to: g3 },
|
|
329
|
+
{ id: "4f374860-28b3-465b-be5f-5e501a39fe8b" }
|
|
330
|
+
),
|
|
306
331
|
status: "inquiry-answer-status-needs-interaction",
|
|
307
332
|
}),
|
|
308
333
|
});
|
|
309
334
|
confirm({
|
|
310
335
|
inquiry: answer({
|
|
311
|
-
inquiry: create(
|
|
336
|
+
inquiry: create(
|
|
337
|
+
{ from: g3, to: g4 },
|
|
338
|
+
{ id: "16eebfae-55c5-4d31-ad48-7ed5578a22a2" }
|
|
339
|
+
),
|
|
312
340
|
status: "inquiry-answer-status-positive",
|
|
313
341
|
}),
|
|
314
342
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectcaluma/ember-testing",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.3",
|
|
4
4
|
"description": "Ember addon for testing with Caluma addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test:ember-compatibility": "ember try:each"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@faker-js/faker": "^6.0.0-alpha.
|
|
17
|
+
"@faker-js/faker": "^6.0.0-alpha.6",
|
|
18
18
|
"broccoli-funnel": "^3.0.8",
|
|
19
19
|
"broccoli-merge-trees": "^4.2.0",
|
|
20
20
|
"ember-apollo-client": "^3.2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@ember/optional-features": "2.0.0",
|
|
35
35
|
"@ember/test-helpers": "2.6.0",
|
|
36
|
-
"@embroider/test-setup": "1.
|
|
36
|
+
"@embroider/test-setup": "1.2.0",
|
|
37
37
|
"broccoli-asset-rev": "3.0.0",
|
|
38
38
|
"ember-cli": "3.28.5",
|
|
39
39
|
"ember-cli-code-coverage": "1.0.3",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"loader.js": "4.7.0",
|
|
55
55
|
"qunit": "2.17.2",
|
|
56
56
|
"qunit-dom": "2.0.0",
|
|
57
|
-
"webpack": "5.
|
|
57
|
+
"webpack": "5.69.0"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": "12.* || 14.* || >= 16"
|