@camunda/e2e-test-suite 0.0.1165 → 0.0.1167
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 +40 -12
- package/dist/pages/8.9/Authorization.js +15 -4
- package/dist/pages/8.9/ModelerCreatePage.js +13 -0
- package/dist/pages/8.9/OperateProcessInstancePage.js +8 -1
- package/dist/pages/8.9/TaskDetailsPage.js +18 -2
- package/dist/tests/8.9/rba-enabled-v2-user-flows.spec.js +5 -5
- package/package.json +1 -1
|
@@ -1546,10 +1546,36 @@ class ModelerCreatePage {
|
|
|
1546
1546
|
// deciding, then branch:
|
|
1547
1547
|
// - "Connect cluster" button visible → no cluster connected, connect one
|
|
1548
1548
|
// - Deploy button enabled → a cluster is already connected
|
|
1549
|
-
// - deploy
|
|
1549
|
+
// - deploy already complete → re-entering an already deployed
|
|
1550
1550
|
// process application, where the Deploy button is replaced by the
|
|
1551
|
-
//
|
|
1552
|
-
// two states is ever reached
|
|
1551
|
+
// deploy step's completion state and "Connect cluster" by "Change",
|
|
1552
|
+
// so neither of the first two states is ever reached
|
|
1553
|
+
//
|
|
1554
|
+
// The success badge is NOT a usable completion signal, not even by
|
|
1555
|
+
// attachment: the current Test Studio panel does not render it at all,
|
|
1556
|
+
// so a wait on it can never resolve — that is what made step 2 below
|
|
1557
|
+
// burn its whole 90s budget on every 8.10 nightly from 2026-09-10 on,
|
|
1558
|
+
// while the same flow stayed green on 8.9 and SM-8.10, both of which
|
|
1559
|
+
// already probe the panel instead. The deploy step reports completion
|
|
1560
|
+
// three other ways: the "Deployment complete" icon in the accordion
|
|
1561
|
+
// HEADING (which stays on screen when the item collapses), the
|
|
1562
|
+
// "Configure test case" step unlocking, and the configure-test panel
|
|
1563
|
+
// opening. Accept any of them, keep the badge for older modeler builds.
|
|
1564
|
+
// A failed deploy leaves all four absent, so both the settle wait and
|
|
1565
|
+
// step 2 still fail on a real deploy failure rather than masking it.
|
|
1566
|
+
//
|
|
1567
|
+
// This probe has to be shared with the settle wait, not just used in
|
|
1568
|
+
// step 2: the already-deployed state is exactly the one that renders no
|
|
1569
|
+
// "Connect cluster" button and no enabled Deploy button, so a settle
|
|
1570
|
+
// wait keyed on the badge alone can never see it and would throw here
|
|
1571
|
+
// before step 2 is ever reached.
|
|
1572
|
+
const deployCompleteIcon = this.page.locator('[aria-label="Deployment complete"]');
|
|
1573
|
+
const isDeployComplete = async () => (await isDeployReported()) ||
|
|
1574
|
+
(await deployCompleteIcon.isVisible().catch(() => false)) ||
|
|
1575
|
+
(await configureTestPanel.isVisible().catch(() => false)) ||
|
|
1576
|
+
(await configureScenarioButton
|
|
1577
|
+
.isEnabled({ timeout: 3000 })
|
|
1578
|
+
.catch(() => false));
|
|
1553
1579
|
const connectClusterButton = this.page.getByRole('button', {
|
|
1554
1580
|
name: 'Connect cluster',
|
|
1555
1581
|
});
|
|
@@ -1560,8 +1586,11 @@ class ModelerCreatePage {
|
|
|
1560
1586
|
const deployEnabled = await setupDeployButton
|
|
1561
1587
|
.isEnabled()
|
|
1562
1588
|
.catch(() => false);
|
|
1563
|
-
|
|
1564
|
-
|
|
1589
|
+
// Evaluated last and only when needed: its isEnabled() probe waits on
|
|
1590
|
+
// a button that is absent on most builds, so short-circuiting keeps
|
|
1591
|
+
// the common "Deploy is enabled" poll cheap.
|
|
1592
|
+
const settled = connectVisible || deployEnabled || (await isDeployComplete());
|
|
1593
|
+
(0, test_1.expect)(settled).toBe(true);
|
|
1565
1594
|
}).toPass({ timeout: 30000 });
|
|
1566
1595
|
const needsClusterConnect = await connectClusterButton
|
|
1567
1596
|
.isVisible()
|
|
@@ -1602,17 +1631,16 @@ class ModelerCreatePage {
|
|
|
1602
1631
|
// deploy step complete. checkExistingDeployment only runs when
|
|
1603
1632
|
// processApplicationId is defined, which it now is, so re-entering
|
|
1604
1633
|
// Play on an already-deployed process application legitimately
|
|
1605
|
-
// has nothing to deploy and renders no Deploy button at all.
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
.isEnabled({ timeout: 3000 })
|
|
1609
|
-
.catch(() => false));
|
|
1610
|
-
if (!alreadyDeployed) {
|
|
1634
|
+
// has nothing to deploy and renders no Deploy button at all. Keyed on
|
|
1635
|
+
// the shared completion probe defined above, never on the success badge.
|
|
1636
|
+
if (!(await isDeployComplete())) {
|
|
1611
1637
|
// Step 2: deploy — wait for enabled; button stays disabled until the cluster
|
|
1612
1638
|
// connection is confirmed by the backend after the Save in step 1.
|
|
1613
1639
|
await (0, test_1.expect)(setupDeployButton).toBeEnabled({ timeout: 30000 });
|
|
1614
1640
|
await setupDeployButton.click({ timeout });
|
|
1615
|
-
await (0, test_1.expect)(
|
|
1641
|
+
await (0, test_1.expect)(async () => {
|
|
1642
|
+
(0, test_1.expect)(await isDeployComplete()).toBe(true);
|
|
1643
|
+
}).toPass({ timeout: 90000, intervals: [1000, 2000, 5000] });
|
|
1616
1644
|
}
|
|
1617
1645
|
// Step 3: reach the configure-test panel and confirm it really rendered.
|
|
1618
1646
|
// The accordion panel opens step 3 on its own once the deploy step
|
|
@@ -105,10 +105,21 @@ class Authorization {
|
|
|
105
105
|
force: true,
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
// Submitting POSTs to the orchestration cluster's Identity API, which
|
|
109
|
+
// answers 503 while the cluster is still settling. Carbon then leaves the
|
|
110
|
+
// modal open with the form still filled, so the only thing the old
|
|
111
|
+
// single-shot submit could do was wait out its 30s and fail. Re-submitting
|
|
112
|
+
// replays the same request from the same form rather than building a
|
|
113
|
+
// second authorization; the guard keeps a slow-but-successful close from
|
|
114
|
+
// clicking a button that is already gone.
|
|
115
|
+
await (0, test_1.expect)(async () => {
|
|
116
|
+
if (await this.createAuthorizationModal.isVisible()) {
|
|
117
|
+
await this.createAuthorizationSubmitButton.click();
|
|
118
|
+
}
|
|
119
|
+
await (0, test_1.expect)(this.createAuthorizationModal).not.toBeVisible({
|
|
120
|
+
timeout: 30000,
|
|
121
|
+
});
|
|
122
|
+
}).toPass({ timeout: 150000, intervals: [5000, 10000, 15000] });
|
|
112
123
|
await this.selectResourceTypeTab(authorization.resourceType).click();
|
|
113
124
|
const item = this.page.getByRole('row').filter({
|
|
114
125
|
hasText: `${authorization.ownerId}${authorization.resourceId}`,
|
|
@@ -382,6 +382,19 @@ class ModelerCreatePage {
|
|
|
382
382
|
if (processId.length > 0) {
|
|
383
383
|
await this.clickStartEventElement();
|
|
384
384
|
await this.clickGeneralPropertiesPanel();
|
|
385
|
+
// Renaming the file is what normally propagates the name into
|
|
386
|
+
// `bpmn:process@name`, but when the rename lands while the just-created
|
|
387
|
+
// diagram is still initialising the sync is lost and the process keeps
|
|
388
|
+
// the template default "New BPMN diagram" -- the breadcrumb shows the new
|
|
389
|
+
// name while the properties panel still shows the old one. That name is
|
|
390
|
+
// the label Tasklist prints under each task (the user task itself is
|
|
391
|
+
// unnamed, so its row reads `Activity_<id>` / `New BPMN diagram`), so
|
|
392
|
+
// `openTask(processName)` then waits out its whole budget on a task that
|
|
393
|
+
// is sitting right there under the wrong label. Set the process name
|
|
394
|
+
// explicitly: the panel is already open on the process element for the id
|
|
395
|
+
// edit below, so this costs one extra fill and removes the race.
|
|
396
|
+
await this.clickNameInput();
|
|
397
|
+
await this.fillNamedInput(processName);
|
|
385
398
|
await this.clickIdInput();
|
|
386
399
|
await this.fillIdInput(processId);
|
|
387
400
|
await this.clickStartEventElement();
|
|
@@ -49,8 +49,15 @@ class OperateProcessInstancePage {
|
|
|
49
49
|
await this.page.reload();
|
|
50
50
|
}
|
|
51
51
|
async closePopOverIfVisible() {
|
|
52
|
+
// This is the first thing every caller does on a freshly opened Operate
|
|
53
|
+
// popup, so the wait has to cover the whole SSO hand-off (weblogin ->
|
|
54
|
+
// sso-callback -> deep link) before the instance header renders, not just
|
|
55
|
+
// the render itself. 60s did not: the first attempt of the 8.9 nightly's
|
|
56
|
+
// "Form.js Integration with User Task and AI Generated Form" died here
|
|
57
|
+
// (run 34919774298). Aligned with the 180s the callers already allow for
|
|
58
|
+
// the instance-state assertions that immediately follow this call.
|
|
52
59
|
await (0, test_1.expect)(this.page.getByText('Instance History').first()).toBeVisible({
|
|
53
|
-
timeout:
|
|
60
|
+
timeout: 180000,
|
|
54
61
|
});
|
|
55
62
|
if (await this.whatsNewPopUp.isVisible()) {
|
|
56
63
|
await this.gotItButton.click();
|
|
@@ -91,7 +91,16 @@ class TaskDetailsPage {
|
|
|
91
91
|
this.decrementButton = page.getByRole('button', { name: 'Decrement' });
|
|
92
92
|
this.dateInput = page.getByLabel('Date of Birth');
|
|
93
93
|
this.timeInput = page.getByPlaceholder('hh:mm ?m');
|
|
94
|
-
|
|
94
|
+
// Only used by the AI-generated-form flow, where the form is produced by a
|
|
95
|
+
// model from a free-text prompt asking for "a Checkbox with the label
|
|
96
|
+
// Agree". The model paraphrases: the same prompt has rendered both `Agree`
|
|
97
|
+
// and `I confirm the details are correct.`. Prefer the requested label and
|
|
98
|
+
// fall back to the form's checkbox input, which is the field the prompt
|
|
99
|
+
// asks for either way.
|
|
100
|
+
this.checkbox = this.form
|
|
101
|
+
.getByLabel('Agree')
|
|
102
|
+
.or(this.form.locator('input[type="checkbox"]'))
|
|
103
|
+
.first();
|
|
95
104
|
this.selectDropdown = this.form.getByText('Select').last();
|
|
96
105
|
this.tagList = page.getByPlaceholder('Search');
|
|
97
106
|
this.detailsInfo = page.getByTestId('details-info');
|
|
@@ -181,7 +190,14 @@ class TaskDetailsPage {
|
|
|
181
190
|
await this.page.getByText(time).click();
|
|
182
191
|
}
|
|
183
192
|
async checkCheckbox() {
|
|
184
|
-
|
|
193
|
+
// form-js re-renders the whole form on every value change, so a click that
|
|
194
|
+
// lands while the preceding field's re-render is in flight focuses the
|
|
195
|
+
// checkbox without toggling it ("Clicking the checkbox did not change its
|
|
196
|
+
// state"). `check()` already verifies the resulting state, so retrying it
|
|
197
|
+
// is enough -- the assertion stays exactly as strict.
|
|
198
|
+
await (0, test_1.expect)(async () => {
|
|
199
|
+
await this.checkbox.check({ timeout: 10000 });
|
|
200
|
+
}).toPass({ timeout: 60000, intervals: [1000, 2000, 5000] });
|
|
185
201
|
}
|
|
186
202
|
async selectDropdownValue(value) {
|
|
187
203
|
await this.selectDropdown.click();
|
|
@@ -74,7 +74,7 @@ _8_9_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
|
74
74
|
sessionStorage.clear();
|
|
75
75
|
});
|
|
76
76
|
await page.goto('/');
|
|
77
|
-
await
|
|
77
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
78
78
|
});
|
|
79
79
|
await _8_9_1.test.step('Navigate to Web Modeler', async () => {
|
|
80
80
|
await appsPage.clickCamundaApps();
|
|
@@ -112,7 +112,7 @@ _8_9_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
|
112
112
|
sessionStorage.clear();
|
|
113
113
|
});
|
|
114
114
|
await page.goto('/');
|
|
115
|
-
await
|
|
115
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
116
116
|
});
|
|
117
117
|
await _8_9_1.test.step('Navigate to Tasklist and Make Sure that the Two Deployed Processes Are Not Accessible', async () => {
|
|
118
118
|
await appsPage.clickCamundaApps();
|
|
@@ -189,7 +189,7 @@ _8_9_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
|
189
189
|
await page.goto('/');
|
|
190
190
|
});
|
|
191
191
|
await _8_9_1.test.step('Login as Test User', async () => {
|
|
192
|
-
await
|
|
192
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
193
193
|
});
|
|
194
194
|
await _8_9_1.test.step('Navigate to Web Modeler', async () => {
|
|
195
195
|
await appsPage.clickCamundaApps();
|
|
@@ -227,7 +227,7 @@ _8_9_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
|
227
227
|
sessionStorage.clear();
|
|
228
228
|
});
|
|
229
229
|
await page.goto('/');
|
|
230
|
-
await
|
|
230
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
231
231
|
});
|
|
232
232
|
await _8_9_1.test.step('Navigate to Tasklist and Only First Process Is Accessible', async () => {
|
|
233
233
|
await appsPage.clickCamundaApps();
|
|
@@ -406,7 +406,7 @@ _8_9_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
|
406
406
|
sessionStorage.clear();
|
|
407
407
|
});
|
|
408
408
|
await page.goto('/');
|
|
409
|
-
await
|
|
409
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
410
410
|
});
|
|
411
411
|
await _8_9_1.test.step('Navigate to Web Modeler', async () => {
|
|
412
412
|
await appsPage.clickCamundaApps();
|