@camunda/e2e-test-suite 0.0.1069 → 0.0.1071
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/dist/pages/8.10/ModelerCreatePage.js +12 -1
- package/dist/pages/8.7/ModelerCreatePage.js +12 -1
- package/dist/pages/8.8/ModelerCreatePage.js +12 -1
- package/dist/pages/8.9/ModelerCreatePage.js +12 -1
- package/dist/tests/8.7/test-setup.spec.js +2 -4
- package/dist/utils/consoleApiHelpers.js +4 -5
- package/package.json +1 -1
|
@@ -1430,7 +1430,18 @@ class ModelerCreatePage {
|
|
|
1430
1430
|
// still about to appear. ConfigureTestPanel returns null for as long as the
|
|
1431
1431
|
// overlay is up, so the Start button never existed and
|
|
1432
1432
|
// clickStartInstanceButton burned its entire retry budget looking for it.
|
|
1433
|
-
|
|
1433
|
+
// camunda-hub's "Play" -> "Test Studio" rebrand renamed this container's
|
|
1434
|
+
// data-test from `play-configuration-overlay` to
|
|
1435
|
+
// `test-studio-configuration-overlay` (confirmed in a failing run's trace
|
|
1436
|
+
// DOM, and already fixed the same way in pages/SM-8.10). Anchor on the
|
|
1437
|
+
// new data-test, keep the legacy attribute for older modeler builds, and
|
|
1438
|
+
// fall back to the "Setup environment" panel title. This locator means
|
|
1439
|
+
// "the setup panel is still on screen".
|
|
1440
|
+
const configurationOverlay = this.page
|
|
1441
|
+
.locator('[data-test="test-studio-configuration-overlay"]')
|
|
1442
|
+
.or(this.page.locator('[data-test="play-configuration-overlay"]'))
|
|
1443
|
+
.or(this.page.getByText('Setup environment'))
|
|
1444
|
+
.first();
|
|
1434
1445
|
const configureTestPanel = this.page.getByTestId('configure-test-panel');
|
|
1435
1446
|
await (0, test_1.expect)(configurationOverlay
|
|
1436
1447
|
.or(this.continueToPlayButton)
|
|
@@ -1236,7 +1236,18 @@ class ModelerCreatePage {
|
|
|
1236
1236
|
// still about to appear. ConfigureTestPanel returns null for as long as the
|
|
1237
1237
|
// overlay is up, so the Start button never existed and
|
|
1238
1238
|
// clickStartInstanceButton burned its entire retry budget looking for it.
|
|
1239
|
-
|
|
1239
|
+
// camunda-hub's "Play" -> "Test Studio" rebrand renamed this container's
|
|
1240
|
+
// data-test from `play-configuration-overlay` to
|
|
1241
|
+
// `test-studio-configuration-overlay` (confirmed in a failing run's trace
|
|
1242
|
+
// DOM, and already fixed the same way in pages/SM-8.10). Anchor on the
|
|
1243
|
+
// new data-test, keep the legacy attribute for older modeler builds, and
|
|
1244
|
+
// fall back to the "Setup environment" panel title. This locator means
|
|
1245
|
+
// "the setup panel is still on screen".
|
|
1246
|
+
const configurationOverlay = this.page
|
|
1247
|
+
.locator('[data-test="test-studio-configuration-overlay"]')
|
|
1248
|
+
.or(this.page.locator('[data-test="play-configuration-overlay"]'))
|
|
1249
|
+
.or(this.page.getByText('Setup environment'))
|
|
1250
|
+
.first();
|
|
1240
1251
|
const configureTestPanel = this.page.getByTestId('configure-test-panel');
|
|
1241
1252
|
await (0, test_1.expect)(configurationOverlay
|
|
1242
1253
|
.or(this.continueToPlayButton)
|
|
@@ -1427,7 +1427,18 @@ class ModelerCreatePage {
|
|
|
1427
1427
|
// still about to appear. ConfigureTestPanel returns null for as long as the
|
|
1428
1428
|
// overlay is up, so the Start button never existed and
|
|
1429
1429
|
// clickStartInstanceButton burned its entire retry budget looking for it.
|
|
1430
|
-
|
|
1430
|
+
// camunda-hub's "Play" -> "Test Studio" rebrand renamed this container's
|
|
1431
|
+
// data-test from `play-configuration-overlay` to
|
|
1432
|
+
// `test-studio-configuration-overlay` (confirmed in a failing run's trace
|
|
1433
|
+
// DOM, and already fixed the same way in pages/SM-8.10). Anchor on the
|
|
1434
|
+
// new data-test, keep the legacy attribute for older modeler builds, and
|
|
1435
|
+
// fall back to the "Setup environment" panel title. This locator means
|
|
1436
|
+
// "the setup panel is still on screen".
|
|
1437
|
+
const configurationOverlay = this.page
|
|
1438
|
+
.locator('[data-test="test-studio-configuration-overlay"]')
|
|
1439
|
+
.or(this.page.locator('[data-test="play-configuration-overlay"]'))
|
|
1440
|
+
.or(this.page.getByText('Setup environment'))
|
|
1441
|
+
.first();
|
|
1431
1442
|
const configureTestPanel = this.page.getByTestId('configure-test-panel');
|
|
1432
1443
|
await (0, test_1.expect)(configurationOverlay
|
|
1433
1444
|
.or(this.continueToPlayButton)
|
|
@@ -1362,7 +1362,18 @@ class ModelerCreatePage {
|
|
|
1362
1362
|
// still about to appear. ConfigureTestPanel returns null for as long as the
|
|
1363
1363
|
// overlay is up, so the Start button never existed and
|
|
1364
1364
|
// clickStartInstanceButton burned its entire retry budget looking for it.
|
|
1365
|
-
|
|
1365
|
+
// camunda-hub's "Play" -> "Test Studio" rebrand renamed this container's
|
|
1366
|
+
// data-test from `play-configuration-overlay` to
|
|
1367
|
+
// `test-studio-configuration-overlay` (confirmed in this failing run's
|
|
1368
|
+
// trace DOM, and already fixed the same way in pages/SM-8.10). Anchor on
|
|
1369
|
+
// the new data-test, keep the legacy attribute for older modeler builds,
|
|
1370
|
+
// and fall back to the "Setup environment" panel title. This locator
|
|
1371
|
+
// means "the setup panel is still on screen".
|
|
1372
|
+
const configurationOverlay = this.page
|
|
1373
|
+
.locator('[data-test="test-studio-configuration-overlay"]')
|
|
1374
|
+
.or(this.page.locator('[data-test="play-configuration-overlay"]'))
|
|
1375
|
+
.or(this.page.getByText('Setup environment'))
|
|
1376
|
+
.first();
|
|
1366
1377
|
const configureTestPanel = this.page.getByTestId('configure-test-panel');
|
|
1367
1378
|
await (0, test_1.expect)(configurationOverlay
|
|
1368
1379
|
.or(this.continueToPlayButton)
|
|
@@ -29,8 +29,7 @@ _8_7_1.test.describe('Cluster Setup Tests', () => {
|
|
|
29
29
|
await clusterPage.assertClusterHealthyStatusWithRetry(clusterName);
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
|
-
await (0, consoleApiHelpers_1.
|
|
33
|
-
const clusterUuid = await (0, consoleApiHelpers_1.createClusterViaApi)(page, clusterName);
|
|
32
|
+
const clusterUuid = await (0, consoleApiHelpers_1.ensureClusterViaApi)(page, clusterName);
|
|
34
33
|
await (0, consoleApiHelpers_1.waitForClusterHealthyViaApi)(page, clusterUuid);
|
|
35
34
|
await homePage.clickClusters();
|
|
36
35
|
}
|
|
@@ -48,8 +47,7 @@ _8_7_1.test.describe('Cluster Setup Tests', () => {
|
|
|
48
47
|
await clusterPage.assertClusterHealthyStatusWithRetry(clusterName, 300000, 1500000);
|
|
49
48
|
}
|
|
50
49
|
else {
|
|
51
|
-
await (0, consoleApiHelpers_1.
|
|
52
|
-
const clusterUuid = await (0, consoleApiHelpers_1.createClusterViaApi)(page, clusterName, 'AWS');
|
|
50
|
+
const clusterUuid = await (0, consoleApiHelpers_1.ensureClusterViaApi)(page, clusterName, 'AWS');
|
|
53
51
|
await (0, consoleApiHelpers_1.waitForClusterHealthyViaApi)(page, clusterUuid, 1500000);
|
|
54
52
|
await homePage.clickClusters();
|
|
55
53
|
}
|
|
@@ -450,12 +450,11 @@ async function ensureTasklistV2Enabled(page, clusterUuid) {
|
|
|
450
450
|
// tests that specifically require a real v2-upgraded backend, never on a
|
|
451
451
|
// cluster shared with anything that needs v1 (e.g. job-worker-based user
|
|
452
452
|
// tasks, draft variables, public start forms).
|
|
453
|
-
const token = await getUserToken(page);
|
|
454
453
|
const orgId = getOrgId();
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
});
|
|
454
|
+
// Same reason as the DELETE in deleteClusterViaApi: a bare page.request
|
|
455
|
+
// call inherits the 10s actionTimeout, which a cluster write on Console
|
|
456
|
+
// can exceed.
|
|
457
|
+
const response = await clusterApiRequest(page, 'PATCH', `${getConsoleBaseUrl()}/api/orgs/${orgId}/clusters/${clusterUuid}`, { tasklistV2Enabled: true });
|
|
459
458
|
if (response.status() !== 200 && response.status() !== 204) {
|
|
460
459
|
throw new Error(`Failed to upgrade cluster "${clusterUuid}" to Tasklist v2: ` +
|
|
461
460
|
`HTTP ${response.status()} - ${await response.text()}`);
|