@camunda/e2e-test-suite 0.0.1717 → 0.0.1718
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.
|
@@ -91,8 +91,7 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
91
91
|
await request.delete(`${baseUrl}/api/public/collection/${collectionIdValue}`, { headers: { Authorization: optimizeBearerToken } });
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
|
|
95
|
-
_8_10_1.test.skip('Get dashboard IDs returns 200 with id array', async ({ request, }) => {
|
|
94
|
+
(0, _8_10_1.test)('Get dashboard IDs returns 200 with id array', async ({ request }) => {
|
|
96
95
|
await _8_10_1.test.step('GET /api/public/dashboard?collectionId returns 200', async () => {
|
|
97
96
|
const response = await request.get(`${baseUrl}/api/public/dashboard?collectionId=${collectionIdValue}`, { headers: { Authorization: optimizeBearerToken } });
|
|
98
97
|
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
@@ -116,15 +115,13 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
116
115
|
await assertUnauthorizedResponseBody(response);
|
|
117
116
|
});
|
|
118
117
|
});
|
|
119
|
-
|
|
120
|
-
_8_10_1.test.skip('GET /api/public/dashboard/force-internal-error returns 500', async ({ request, }) => {
|
|
118
|
+
(0, _8_10_1.test)('GET /api/public/dashboard/force-internal-error returns 500', async ({ request, }) => {
|
|
121
119
|
await _8_10_1.test.step('Force internal server error (500)', async () => {
|
|
122
120
|
const response = await request.get(`${baseUrl}/api/public/dashboard/force-internal-error`, { headers: { Authorization: optimizeBearerToken } });
|
|
123
121
|
(0, test_1.expect)(response.status()).toBe(500);
|
|
124
122
|
});
|
|
125
123
|
});
|
|
126
|
-
|
|
127
|
-
_8_10_1.test.skip('Export dashboard definitions successfully returns 200', async ({ request, }) => {
|
|
124
|
+
(0, _8_10_1.test)('Export dashboard definitions successfully returns 200', async ({ request, }) => {
|
|
128
125
|
await _8_10_1.test.step('POST export dashboard definitions (200)', async () => {
|
|
129
126
|
const response = await request.post(`${baseUrl}/api/public/export/dashboard/definition/json`, {
|
|
130
127
|
headers: {
|
|
@@ -168,8 +165,7 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
168
165
|
await assertUnauthorizedResponseBody(response);
|
|
169
166
|
});
|
|
170
167
|
});
|
|
171
|
-
|
|
172
|
-
_8_10_1.test.skip('Export dashboard with invalid body returns 400', async ({ request, }) => {
|
|
168
|
+
(0, _8_10_1.test)('Export dashboard with invalid body returns 400', async ({ request }) => {
|
|
173
169
|
await _8_10_1.test.step('POST export dashboard with invalid body (400)', async () => {
|
|
174
170
|
const response = await request.post(`${baseUrl}/api/public/export/dashboard/definition/json`, {
|
|
175
171
|
headers: {
|
|
@@ -194,8 +190,7 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
194
190
|
(0, test_1.expect)([401, 404]).toContain(response.status());
|
|
195
191
|
});
|
|
196
192
|
});
|
|
197
|
-
|
|
198
|
-
_8_10_1.test.skip('Delete dashboard and verify it is no longer retrievable', async ({ request, }) => {
|
|
193
|
+
(0, _8_10_1.test)('Delete dashboard and verify it is no longer retrievable', async ({ request, }) => {
|
|
199
194
|
const dashboardToDeleteId = await (0, apiHelpers_1.createDashboard)(request, {
|
|
200
195
|
name: await (0, randomName_1.randomNameAgregator)('Dashboard To Delete'),
|
|
201
196
|
optimizeCookie,
|
|
@@ -217,16 +212,14 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
217
212
|
await assertUnauthorizedResponseBody(response);
|
|
218
213
|
});
|
|
219
214
|
});
|
|
220
|
-
|
|
221
|
-
_8_10_1.test.skip('Delete non-existent dashboard returns 404', async ({ request }) => {
|
|
215
|
+
(0, _8_10_1.test)('Delete non-existent dashboard returns 404', async ({ request }) => {
|
|
222
216
|
await _8_10_1.test.step('DELETE non-existent dashboard (404)', async () => {
|
|
223
217
|
const fakeDashboardId = 'nonexistent-dashboard-id';
|
|
224
218
|
const response = await request.delete(`${baseUrl}/api/public/dashboard/${fakeDashboardId}`, { headers: { Authorization: optimizeBearerToken } });
|
|
225
219
|
(0, test_1.expect)(response.status()).toBe(404);
|
|
226
220
|
});
|
|
227
221
|
});
|
|
228
|
-
|
|
229
|
-
_8_10_1.test.skip('Get report IDs returns 200 with id array', async ({ request }) => {
|
|
222
|
+
(0, _8_10_1.test)('Get report IDs returns 200 with id array', async ({ request }) => {
|
|
230
223
|
await _8_10_1.test.step('GET /api/public/report?collectionId returns 200', async () => {
|
|
231
224
|
const response = await request.get(`${baseUrl}/api/public/report?collectionId=${collectionIdValue}`, { headers: { Authorization: optimizeBearerToken } });
|
|
232
225
|
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
@@ -244,8 +237,7 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
244
237
|
await assertUnauthorizedResponseBody(response);
|
|
245
238
|
});
|
|
246
239
|
});
|
|
247
|
-
|
|
248
|
-
_8_10_1.test.skip('Export reports successfully returns 200 with full payload', async ({ request, }) => {
|
|
240
|
+
(0, _8_10_1.test)('Export reports successfully returns 200 with full payload', async ({ request, }) => {
|
|
249
241
|
await _8_10_1.test.step('POST export report definitions (200)', async () => {
|
|
250
242
|
const response = await request.post(`${baseUrl}/api/public/export/report/definition/json`, {
|
|
251
243
|
headers: {
|
|
@@ -282,8 +274,7 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
282
274
|
await assertUnauthorizedResponseBody(response);
|
|
283
275
|
});
|
|
284
276
|
});
|
|
285
|
-
|
|
286
|
-
_8_10_1.test.skip('Export non-existent report returns 404', async ({ request }) => {
|
|
277
|
+
(0, _8_10_1.test)('Export non-existent report returns 404', async ({ request }) => {
|
|
287
278
|
await _8_10_1.test.step('POST export non-existent report (404)', async () => {
|
|
288
279
|
const invalidReportId = '11111111-1111-1111-1111-111111111111';
|
|
289
280
|
const response = await request.post(`${baseUrl}/api/public/export/report/definition/json`, {
|
|
@@ -296,8 +287,7 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
296
287
|
await (0, apiHelpers_1.assertResponseStatus)(response, 404);
|
|
297
288
|
});
|
|
298
289
|
});
|
|
299
|
-
|
|
300
|
-
_8_10_1.test.skip('Delete report and verify it is no longer retrievable', async ({ request, }) => {
|
|
290
|
+
(0, _8_10_1.test)('Delete report and verify it is no longer retrievable', async ({ request, }) => {
|
|
301
291
|
const reportToDeleteId = await (0, apiHelpers_1.createSingleProcessReport)(request, {
|
|
302
292
|
optimizeCookie,
|
|
303
293
|
csrfToken,
|
|
@@ -328,8 +318,7 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
328
318
|
await assertUnauthorizedResponseBody(response);
|
|
329
319
|
});
|
|
330
320
|
});
|
|
331
|
-
|
|
332
|
-
_8_10_1.test.skip('Import entities successfully (200)', async ({ request }) => {
|
|
321
|
+
(0, _8_10_1.test)('Import entities successfully (200)', async ({ request }) => {
|
|
333
322
|
const exportResponse = await request.post(`${baseUrl}/api/public/export/dashboard/definition/json`, {
|
|
334
323
|
headers: {
|
|
335
324
|
Authorization: optimizeBearerToken,
|
|
@@ -351,8 +340,7 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
351
340
|
(0, test_1.expect)(Array.isArray(importResult)).toBeTruthy();
|
|
352
341
|
(0, test_1.expect)(importResult.length).toBeGreaterThan(0);
|
|
353
342
|
});
|
|
354
|
-
|
|
355
|
-
_8_10_1.test.skip('Import without token or invalid token returns 401', async ({ request, }) => {
|
|
343
|
+
(0, _8_10_1.test)('Import without token or invalid token returns 401', async ({ request, }) => {
|
|
356
344
|
const exportResponse = await request.post(`${baseUrl}/api/public/export/dashboard/definition/json`, {
|
|
357
345
|
headers: {
|
|
358
346
|
Authorization: optimizeBearerToken,
|
|
@@ -371,8 +359,7 @@ _8_10_1.test.describe('API optimize SaaS Tests', () => {
|
|
|
371
359
|
});
|
|
372
360
|
await assertUnauthorizedResponseBody(response);
|
|
373
361
|
});
|
|
374
|
-
|
|
375
|
-
_8_10_1.test.skip('Import to non-existent collection (404)', async ({ request }) => {
|
|
362
|
+
(0, _8_10_1.test)('Import to non-existent collection (404)', async ({ request }) => {
|
|
376
363
|
const exportResponse = await request.post(`${baseUrl}/api/public/export/dashboard/definition/json`, {
|
|
377
364
|
headers: {
|
|
378
365
|
Authorization: optimizeBearerToken,
|
|
@@ -483,8 +470,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Conditional Events', () => {
|
|
|
483
470
|
(0, test_1.expect)(body.id).toBeTruthy();
|
|
484
471
|
});
|
|
485
472
|
});
|
|
486
|
-
|
|
487
|
-
_8_10_1.test.skip('CE-OPT-10: Exporting the Conditional Events report definition via API returns the full report payload', async ({ request, }) => {
|
|
473
|
+
(0, _8_10_1.test)('CE-OPT-10: Exporting the Conditional Events report definition via API returns the full report payload', async ({ request, }) => {
|
|
488
474
|
await _8_10_1.test.step('Export report definition successfully (200)', async () => {
|
|
489
475
|
const response = await request.post(`${baseUrl}/api/public/export/report/definition/json`, {
|
|
490
476
|
headers: {
|
|
@@ -530,8 +516,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Conditional Events', () => {
|
|
|
530
516
|
await assertUnauthorizedResponseBody(response);
|
|
531
517
|
});
|
|
532
518
|
});
|
|
533
|
-
|
|
534
|
-
_8_10_1.test.skip('CE-OPT-13: Deleting the Conditional Events report via API succeeds with HTTP 200', async ({ request, }) => {
|
|
519
|
+
(0, _8_10_1.test)('CE-OPT-13: Deleting the Conditional Events report via API succeeds with HTTP 200', async ({ request, }) => {
|
|
535
520
|
const reportToDeleteId = await (0, apiHelpers_1.createSingleProcessReport)(request, {
|
|
536
521
|
optimizeCookie,
|
|
537
522
|
csrfToken,
|
|
@@ -552,8 +537,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Conditional Events', () => {
|
|
|
552
537
|
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
553
538
|
});
|
|
554
539
|
});
|
|
555
|
-
|
|
556
|
-
_8_10_1.test.skip('CE-OPT-14: A deleted Conditional Events report is no longer retrievable via the API', async ({ request, }) => {
|
|
540
|
+
(0, _8_10_1.test)('CE-OPT-14: A deleted Conditional Events report is no longer retrievable via the API', async ({ request, }) => {
|
|
557
541
|
const reportToDeleteId = await (0, apiHelpers_1.createSingleProcessReport)(request, {
|
|
558
542
|
optimizeCookie,
|
|
559
543
|
csrfToken,
|
|
@@ -622,22 +606,25 @@ _8_10_1.test.describe('API optimize SaaS Tests - Sharing', () => {
|
|
|
622
606
|
enabled: true,
|
|
623
607
|
});
|
|
624
608
|
});
|
|
625
|
-
|
|
626
|
-
_8_10_1.test.skip('Enable sharing with valid token returns 200 or 204', async ({ request, }) => {
|
|
609
|
+
(0, _8_10_1.test)('Enable sharing with valid token returns 200 or 204', async ({ request, }) => {
|
|
627
610
|
await _8_10_1.test.step('POST /api/public/share/enable with valid token (200 or 204)', async () => {
|
|
628
611
|
const response = await request.post(`${baseUrl}/api/public/share/enable`, { headers: { Authorization: optimizeBearerToken } });
|
|
629
612
|
(0, test_1.expect)([200, 204]).toContain(response.status());
|
|
630
613
|
});
|
|
631
614
|
});
|
|
632
|
-
|
|
633
|
-
_8_10_1.test.skip('Enable sharing without token returns 401', async ({ request }) => {
|
|
615
|
+
(0, _8_10_1.test)('Enable sharing without token returns 401', async ({ request }) => {
|
|
634
616
|
await _8_10_1.test.step('POST /api/public/share/enable without token (401)', async () => {
|
|
635
617
|
const response = await request.post(`${baseUrl}/api/public/share/enable`);
|
|
636
618
|
await assertUnauthorizedResponseBody(response);
|
|
637
619
|
});
|
|
638
620
|
});
|
|
639
|
-
|
|
640
|
-
|
|
621
|
+
(0, _8_10_1.test)('Enable sharing with invalid token returns 401', async ({ request }) => {
|
|
622
|
+
await _8_10_1.test.step('POST /api/public/share/enable with invalid token (401)', async () => {
|
|
623
|
+
const response = await request.post(`${baseUrl}/api/public/share/enable`, { headers: { Authorization: 'Bearer invalid_token' } });
|
|
624
|
+
await assertUnauthorizedResponseBody(response);
|
|
625
|
+
});
|
|
626
|
+
});
|
|
627
|
+
(0, _8_10_1.test)('Disable sharing with valid token returns 200 or 204', async ({ request, }) => {
|
|
641
628
|
await _8_10_1.test.step('POST /api/public/share/disable with valid token (200 or 204)', async () => {
|
|
642
629
|
const response = await request.post(`${baseUrl}/api/public/share/disable`, { headers: { Authorization: optimizeBearerToken } });
|
|
643
630
|
(0, test_1.expect)([200, 204]).toContain(response.status());
|
|
@@ -650,15 +637,19 @@ _8_10_1.test.describe('API optimize SaaS Tests - Sharing', () => {
|
|
|
650
637
|
});
|
|
651
638
|
});
|
|
652
639
|
});
|
|
653
|
-
|
|
654
|
-
_8_10_1.test.skip('Disable sharing without token returns 401', async ({ request }) => {
|
|
640
|
+
(0, _8_10_1.test)('Disable sharing without token returns 401', async ({ request }) => {
|
|
655
641
|
await _8_10_1.test.step('POST /api/public/share/disable without token (401)', async () => {
|
|
656
642
|
const response = await request.post(`${baseUrl}/api/public/share/disable`);
|
|
657
643
|
await assertUnauthorizedResponseBody(response);
|
|
658
644
|
});
|
|
659
645
|
});
|
|
660
|
-
|
|
661
|
-
|
|
646
|
+
(0, _8_10_1.test)('Disable sharing with invalid token returns 401', async ({ request }) => {
|
|
647
|
+
await _8_10_1.test.step('POST /api/public/share/disable with invalid token (401)', async () => {
|
|
648
|
+
const response = await request.post(`${baseUrl}/api/public/share/disable`, { headers: { Authorization: 'Bearer invalid_token' } });
|
|
649
|
+
await assertUnauthorizedResponseBody(response);
|
|
650
|
+
});
|
|
651
|
+
});
|
|
652
|
+
(0, _8_10_1.test)('Sharing toggle cycle: enable then disable is idempotent', async ({ request, }) => {
|
|
662
653
|
await _8_10_1.test.step('Enable sharing (200 or 204)', async () => {
|
|
663
654
|
const response = await request.post(`${baseUrl}/api/public/share/enable`, { headers: { Authorization: optimizeBearerToken } });
|
|
664
655
|
(0, test_1.expect)([200, 204]).toContain(response.status());
|
|
@@ -673,26 +664,6 @@ _8_10_1.test.describe('API optimize SaaS Tests - Sharing', () => {
|
|
|
673
664
|
});
|
|
674
665
|
});
|
|
675
666
|
});
|
|
676
|
-
// An invalid token cannot change the cluster-wide sharing setting, so these
|
|
677
|
-
// run without the authenticated restoration hook of the describe above.
|
|
678
|
-
_8_10_1.test.describe('API optimize SaaS Tests - Sharing with invalid token', () => {
|
|
679
|
-
let baseUrl;
|
|
680
|
-
_8_10_1.test.beforeAll(async () => {
|
|
681
|
-
baseUrl = process.env.CAMUNDA_OPTIMIZE_BASE_URL;
|
|
682
|
-
});
|
|
683
|
-
(0, _8_10_1.test)('Enable sharing with invalid token returns 401', async ({ request }) => {
|
|
684
|
-
await _8_10_1.test.step('POST /api/public/share/enable with invalid token (401)', async () => {
|
|
685
|
-
const response = await request.post(`${baseUrl}/api/public/share/enable`, { headers: { Authorization: 'Bearer invalid_token' } });
|
|
686
|
-
await assertUnauthorizedResponseBody(response);
|
|
687
|
-
});
|
|
688
|
-
});
|
|
689
|
-
(0, _8_10_1.test)('Disable sharing with invalid token returns 401', async ({ request }) => {
|
|
690
|
-
await _8_10_1.test.step('POST /api/public/share/disable with invalid token (401)', async () => {
|
|
691
|
-
const response = await request.post(`${baseUrl}/api/public/share/disable`, { headers: { Authorization: 'Bearer invalid_token' } });
|
|
692
|
-
await assertUnauthorizedResponseBody(response);
|
|
693
|
-
});
|
|
694
|
-
});
|
|
695
|
-
});
|
|
696
667
|
_8_10_1.test.describe('API optimize SaaS Tests - Dashboard and Report GET edge cases', () => {
|
|
697
668
|
let optimizeBearerToken;
|
|
698
669
|
let optimizeCookie;
|
|
@@ -718,8 +689,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Dashboard and Report GET edge c
|
|
|
718
689
|
});
|
|
719
690
|
}
|
|
720
691
|
});
|
|
721
|
-
|
|
722
|
-
_8_10_1.test.skip('GET dashboards with valid token and collectionId returns 200 with id array', async ({ request, }) => {
|
|
692
|
+
(0, _8_10_1.test)('GET dashboards with valid token and collectionId returns 200 with id array', async ({ request, }) => {
|
|
723
693
|
await _8_10_1.test.step('GET /api/public/dashboard?collectionId returns 200', async () => {
|
|
724
694
|
const response = await request.get(`${baseUrl}/api/public/dashboard?collectionId=${collectionId}`, { headers: { Authorization: optimizeBearerToken } });
|
|
725
695
|
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
@@ -728,8 +698,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Dashboard and Report GET edge c
|
|
|
728
698
|
(0, test_1.expect)(body.every((dashboard) => typeof dashboard.id === 'string' && dashboard.id.length > 0)).toBeTruthy();
|
|
729
699
|
});
|
|
730
700
|
});
|
|
731
|
-
|
|
732
|
-
_8_10_1.test.skip('GET dashboards without collectionId param returns 400 or 500', async ({ request, }) => {
|
|
701
|
+
(0, _8_10_1.test)('GET dashboards without collectionId param returns 400 or 500', async ({ request, }) => {
|
|
733
702
|
await _8_10_1.test.step('GET /api/public/dashboard without collectionId', async () => {
|
|
734
703
|
const response = await request.get(`${baseUrl}/api/public/dashboard`, {
|
|
735
704
|
headers: { Authorization: optimizeBearerToken },
|
|
@@ -737,8 +706,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Dashboard and Report GET edge c
|
|
|
737
706
|
(0, test_1.expect)([400, 500]).toContain(response.status());
|
|
738
707
|
});
|
|
739
708
|
});
|
|
740
|
-
|
|
741
|
-
_8_10_1.test.skip('GET reports with valid token and collectionId returns 200 with id array', async ({ request, }) => {
|
|
709
|
+
(0, _8_10_1.test)('GET reports with valid token and collectionId returns 200 with id array', async ({ request, }) => {
|
|
742
710
|
await _8_10_1.test.step('GET /api/public/report?collectionId returns 200', async () => {
|
|
743
711
|
const response = await request.get(`${baseUrl}/api/public/report?collectionId=${collectionId}`, { headers: { Authorization: optimizeBearerToken } });
|
|
744
712
|
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
@@ -747,8 +715,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Dashboard and Report GET edge c
|
|
|
747
715
|
(0, test_1.expect)(body.length).toBe(0);
|
|
748
716
|
});
|
|
749
717
|
});
|
|
750
|
-
|
|
751
|
-
_8_10_1.test.skip('GET reports without collectionId param returns 400 or 500', async ({ request, }) => {
|
|
718
|
+
(0, _8_10_1.test)('GET reports without collectionId param returns 400 or 500', async ({ request, }) => {
|
|
752
719
|
await _8_10_1.test.step('GET /api/public/report without collectionId', async () => {
|
|
753
720
|
const response = await request.get(`${baseUrl}/api/public/report`, {
|
|
754
721
|
headers: { Authorization: optimizeBearerToken },
|
|
@@ -828,8 +795,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Export edge cases', () => {
|
|
|
828
795
|
});
|
|
829
796
|
}
|
|
830
797
|
});
|
|
831
|
-
|
|
832
|
-
_8_10_1.test.skip('Export multiple dashboards in a single call returns 200 with all definitions', async ({ request, }) => {
|
|
798
|
+
(0, _8_10_1.test)('Export multiple dashboards in a single call returns 200 with all definitions', async ({ request, }) => {
|
|
833
799
|
await _8_10_1.test.step('POST export with two dashboard IDs returns array of 2', async () => {
|
|
834
800
|
const response = await request.post(`${baseUrl}/api/public/export/dashboard/definition/json`, {
|
|
835
801
|
headers: {
|
|
@@ -849,8 +815,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Export edge cases', () => {
|
|
|
849
815
|
(0, test_1.expect)(exportedIds).toContain(dashboardId2);
|
|
850
816
|
});
|
|
851
817
|
});
|
|
852
|
-
|
|
853
|
-
_8_10_1.test.skip('Export multiple reports in a single call returns 200 with all definitions', async ({ request, }) => {
|
|
818
|
+
(0, _8_10_1.test)('Export multiple reports in a single call returns 200 with all definitions', async ({ request, }) => {
|
|
854
819
|
await _8_10_1.test.step('POST export with two report IDs returns array of 2', async () => {
|
|
855
820
|
const response = await request.post(`${baseUrl}/api/public/export/report/definition/json`, {
|
|
856
821
|
headers: {
|
|
@@ -870,8 +835,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Export edge cases', () => {
|
|
|
870
835
|
(0, test_1.expect)(exportedIds).toContain(reportId2);
|
|
871
836
|
});
|
|
872
837
|
});
|
|
873
|
-
|
|
874
|
-
_8_10_1.test.skip('Export reports with empty array body returns 200 with empty array', async ({ request, }) => {
|
|
838
|
+
(0, _8_10_1.test)('Export reports with empty array body returns 200 with empty array', async ({ request, }) => {
|
|
875
839
|
await _8_10_1.test.step('POST export/report with empty array body returns 200 []', async () => {
|
|
876
840
|
const response = await request.post(`${baseUrl}/api/public/export/report/definition/json`, {
|
|
877
841
|
headers: {
|
|
@@ -886,8 +850,7 @@ _8_10_1.test.describe('API optimize SaaS Tests - Export edge cases', () => {
|
|
|
886
850
|
(0, test_1.expect)(body.length).toBe(0);
|
|
887
851
|
});
|
|
888
852
|
});
|
|
889
|
-
|
|
890
|
-
_8_10_1.test.skip('Export dashboards with empty array body returns 200 with empty array', async ({ request, }) => {
|
|
853
|
+
(0, _8_10_1.test)('Export dashboards with empty array body returns 200 with empty array', async ({ request, }) => {
|
|
891
854
|
await _8_10_1.test.step('POST export/dashboard with empty array body returns 200 []', async () => {
|
|
892
855
|
const response = await request.post(`${baseUrl}/api/public/export/dashboard/definition/json`, {
|
|
893
856
|
headers: {
|
|
@@ -100,8 +100,7 @@ _8_10_1.test.describe('API Optimize Collections Lifecycle Tests @optimize-collec
|
|
|
100
100
|
headers: { Authorization: optimizeBearerToken },
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
|
-
|
|
104
|
-
_8_10_1.test.skip('Delete a collection and verify it is no longer retrievable', async ({ request, }) => {
|
|
103
|
+
(0, _8_10_1.test)('Delete a collection and verify it is no longer retrievable', async ({ request, }) => {
|
|
105
104
|
const collectionName = await (0, randomName_1.randomNameAgregator)('Collection Delete');
|
|
106
105
|
const collectionId = await (0, apiHelpers_1.createCollection)(request, {
|
|
107
106
|
name: collectionName,
|
|
@@ -176,8 +175,7 @@ _8_10_1.test.describe('API Optimize Collections Lifecycle Tests @optimize-collec
|
|
|
176
175
|
headers: { Authorization: optimizeBearerToken },
|
|
177
176
|
});
|
|
178
177
|
});
|
|
179
|
-
|
|
180
|
-
_8_10_1.test.skip('Delete non-existent collection is rejected (404; SaaS may respond 500)', async ({ request, }) => {
|
|
178
|
+
(0, _8_10_1.test)('Delete non-existent collection is rejected (404; SaaS may respond 500)', async ({ request, }) => {
|
|
181
179
|
await _8_10_1.test.step('DELETE /api/public/collection/{id} for missing collection', async () => {
|
|
182
180
|
const response = await request.delete(`${baseUrl}/api/public/collection/nonexistent-collection-id`, { headers: { Authorization: optimizeBearerToken } });
|
|
183
181
|
(0, test_1.expect)([404, 500]).toContain(response.status());
|
|
@@ -163,8 +163,7 @@ _8_10_1.test.describe('API Optimize Sharing, Alerts & Export Tests @optimize-sha
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
|
-
|
|
167
|
-
_8_10_1.test.skip('Export report result data returns 200 with paginated payload', async ({ request, }) => {
|
|
166
|
+
(0, _8_10_1.test)('Export report result data returns 200 with paginated payload', async ({ request, }) => {
|
|
168
167
|
await _8_10_1.test.step('GET /api/public/export/report/{id}/result/json (200)', async () => {
|
|
169
168
|
const response = await request.get(`${baseUrl}/api/public/export/report/${rawDataReportId}/result/json?paginationTimeout=60&limit=100`, { headers: { Authorization: optimizeBearerToken } });
|
|
170
169
|
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
@@ -176,8 +175,7 @@ _8_10_1.test.describe('API Optimize Sharing, Alerts & Export Tests @optimize-sha
|
|
|
176
175
|
(0, test_1.expect)(Array.isArray(body.data)).toBeTruthy();
|
|
177
176
|
});
|
|
178
177
|
});
|
|
179
|
-
|
|
180
|
-
_8_10_1.test.skip('Export report result data without pagination params returns 200', async ({ request, }) => {
|
|
178
|
+
(0, _8_10_1.test)('Export report result data without pagination params returns 200', async ({ request, }) => {
|
|
181
179
|
await _8_10_1.test.step('GET export result with optional query params omitted (200)', async () => {
|
|
182
180
|
const response = await request.get(`${baseUrl}/api/public/export/report/${numberReportId}/result/json`, { headers: { Authorization: optimizeBearerToken } });
|
|
183
181
|
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
@@ -197,15 +195,13 @@ _8_10_1.test.describe('API Optimize Sharing, Alerts & Export Tests @optimize-sha
|
|
|
197
195
|
await assertUnauthorizedResponseBody(response);
|
|
198
196
|
});
|
|
199
197
|
});
|
|
200
|
-
|
|
201
|
-
_8_10_1.test.skip('Export result data for non-existent report is rejected (404; SaaS may respond 500)', async ({ request, }) => {
|
|
198
|
+
(0, _8_10_1.test)('Export result data for non-existent report is rejected (404; SaaS may respond 500)', async ({ request, }) => {
|
|
202
199
|
await _8_10_1.test.step('GET export result for missing report (404 or 500)', async () => {
|
|
203
200
|
const response = await request.get(`${baseUrl}/api/public/export/report/11111111-1111-1111-1111-111111111111/result/json?paginationTimeout=60&limit=100`, { headers: { Authorization: optimizeBearerToken } });
|
|
204
201
|
(0, test_1.expect)([404, 500]).toContain(response.status());
|
|
205
202
|
});
|
|
206
203
|
});
|
|
207
|
-
|
|
208
|
-
_8_10_1.test.skip('Enable, evaluate and delete a report share', async ({ request }) => {
|
|
204
|
+
(0, _8_10_1.test)('Enable, evaluate and delete a report share', async ({ request }) => {
|
|
209
205
|
let reportShareId = '';
|
|
210
206
|
await _8_10_1.test.step('Ensure sharing is enabled cluster-wide', async () => {
|
|
211
207
|
await (0, apiHelpers_1.setOptimizeSharing)(request, {
|
|
@@ -250,8 +246,7 @@ _8_10_1.test.describe('API Optimize Sharing, Alerts & Export Tests @optimize-sha
|
|
|
250
246
|
await assertUnauthorizedResponseBody(response);
|
|
251
247
|
});
|
|
252
248
|
});
|
|
253
|
-
|
|
254
|
-
_8_10_1.test.skip('Enable and delete a dashboard share', async ({ request }) => {
|
|
249
|
+
(0, _8_10_1.test)('Enable and delete a dashboard share', async ({ request }) => {
|
|
255
250
|
let dashboardShareId = '';
|
|
256
251
|
await _8_10_1.test.step('Ensure sharing is enabled cluster-wide', async () => {
|
|
257
252
|
await (0, apiHelpers_1.setOptimizeSharing)(request, {
|
|
@@ -138,8 +138,7 @@ _8_10_1.test.describe('Optimize Sharing & Export UI Tests @optimize-sharing-aler
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
|
|
142
|
-
_8_10_1.test.skip('Enable report sharing and expose a public share link', async ({ appsPage, optimizeHomePage, optimizeSharePage, }) => {
|
|
141
|
+
(0, _8_10_1.test)('Enable report sharing and expose a public share link', async ({ appsPage, optimizeHomePage, optimizeSharePage, }) => {
|
|
143
142
|
await _8_10_1.test.step('Open Optimize from the Camunda apps launcher', async () => {
|
|
144
143
|
// The apps-menu hand-off starts an OIDC round trip, and when
|
|
145
144
|
// Optimize's /sso-callback answers 401 the tab is left on a blank
|
|
@@ -160,8 +159,7 @@ _8_10_1.test.describe('Optimize Sharing & Export UI Tests @optimize-sharing-aler
|
|
|
160
159
|
await optimizeSharePage.disableSharing();
|
|
161
160
|
});
|
|
162
161
|
});
|
|
163
|
-
|
|
164
|
-
_8_10_1.test.skip('Report offers a CSV download/export action', async ({ appsPage, optimizeHomePage, optimizeSharePage, }) => {
|
|
162
|
+
(0, _8_10_1.test)('Report offers a CSV download/export action', async ({ appsPage, optimizeHomePage, optimizeSharePage, }) => {
|
|
165
163
|
await _8_10_1.test.step('Open Optimize from the Camunda apps launcher', async () => {
|
|
166
164
|
// The apps-menu hand-off starts an OIDC round trip, and when
|
|
167
165
|
// Optimize's /sso-callback answers 401 the tab is left on a blank
|
|
@@ -177,8 +175,7 @@ _8_10_1.test.describe('Optimize Sharing & Export UI Tests @optimize-sharing-aler
|
|
|
177
175
|
await optimizeSharePage.assertDownloadOptionAvailable();
|
|
178
176
|
});
|
|
179
177
|
});
|
|
180
|
-
|
|
181
|
-
_8_10_1.test.skip('Enable dashboard sharing and expose a public share link', async ({ appsPage, optimizeHomePage, optimizeSharePage, }) => {
|
|
178
|
+
(0, _8_10_1.test)('Enable dashboard sharing and expose a public share link', async ({ appsPage, optimizeHomePage, optimizeSharePage, }) => {
|
|
182
179
|
await _8_10_1.test.step('Open Optimize from the Camunda apps launcher', async () => {
|
|
183
180
|
// Same retrying opener as the two tests above, for the same reason: a
|
|
184
181
|
// /sso-callback that answers 401 leaves the tab on a blank page that
|