@camunda/e2e-test-suite 0.0.1306 → 0.0.1307
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.8/ConnectorSettingsPage.js +7 -1
- package/dist/pages/8.8/ModelerHomePage.js +7 -0
- package/dist/pages/8.8/OCIdentityRolesPage.js +10 -1
- package/dist/pages/8.8/UtilitiesPage.js +12 -3
- package/dist/pages/8.8/WorkspaceMembersPage.js +14 -18
- package/dist/tests/8.8/access-user-role-management.spec.js +10 -13
- package/dist/tests/8.8/rba-enabled-v1-user-flows.spec.js +9 -2
- package/dist/tests/8.8/rba-enabled-v2-user-flows.spec.js +2 -2
- package/dist/tests/8.8/utr-enabled-user-flows.spec.js +3 -6
- package/dist/utils/hubResourceRename.js +13 -3
- package/package.json +1 -1
|
@@ -20,7 +20,13 @@ class ConnectorSettingsPage {
|
|
|
20
20
|
inputTab;
|
|
21
21
|
constructor(page) {
|
|
22
22
|
this.page = page;
|
|
23
|
-
|
|
23
|
+
// Scoped to the properties panel: getByLabel matches on a substring, so
|
|
24
|
+
// page-wide it also resolves the breadcrumb's "<diagram name> actions"
|
|
25
|
+
// button whenever the diagram name happens to contain "url" -- a strict
|
|
26
|
+
// mode violation that has nothing to do with this field.
|
|
27
|
+
this.urlInput = page
|
|
28
|
+
.locator('[data-test="properties-panel"]')
|
|
29
|
+
.getByLabel('URL');
|
|
24
30
|
this.resultExpressionInput = page.getByRole('textbox', {
|
|
25
31
|
name: /^Result expression$/,
|
|
26
32
|
});
|
|
@@ -733,6 +733,13 @@ class ModelerHomePage {
|
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
735
|
await this.clickWorkspaceDiagramTypeDropdown();
|
|
736
|
+
// A click that lands while the toolbar is still settling leaves the menu
|
|
737
|
+
// closed, and the option then never appears however long it is waited
|
|
738
|
+
// for. Re-open once instead of spending the option's full 60s budget on a
|
|
739
|
+
// menu that is not there.
|
|
740
|
+
if (!(await this.becameVisible(this.processApplicationPage.createProcessApplicationOption, 15000))) {
|
|
741
|
+
await this.clickWorkspaceDiagramTypeDropdown();
|
|
742
|
+
}
|
|
736
743
|
await this.processApplicationPage.clickCreateProcessApplicationOption();
|
|
737
744
|
}
|
|
738
745
|
// Re-enters this test's container if it already has one, without creating
|
|
@@ -138,7 +138,16 @@ class OCIdentityRolesPage {
|
|
|
138
138
|
await this.createIdField.fill(role.id);
|
|
139
139
|
await this.createNameField.fill(role.name);
|
|
140
140
|
await this.createRoleModalCreateButton.click();
|
|
141
|
-
|
|
141
|
+
try {
|
|
142
|
+
await (0, test_1.expect)(this.createRoleModal).not.toBeVisible({ timeout: 30000 });
|
|
143
|
+
}
|
|
144
|
+
catch {
|
|
145
|
+
// Same drop as in doAssignUserToRole: a Create click that lands while
|
|
146
|
+
// the modal is still mid-render is swallowed, leaving the modal open
|
|
147
|
+
// with no error surfaced. Re-click Create once before failing.
|
|
148
|
+
await this.createRoleModalCreateButton.click();
|
|
149
|
+
await (0, test_1.expect)(this.createRoleModal).not.toBeVisible({ timeout: 30000 });
|
|
150
|
+
}
|
|
142
151
|
await (0, expectLocatorWithPagination_1.expectLocatorWithPagination)(this.page, this.rolesList
|
|
143
152
|
.getByRole('cell', {
|
|
144
153
|
name: role.name,
|
|
@@ -470,9 +470,18 @@ async function assertTestUsesCorrectOrganization(page) {
|
|
|
470
470
|
// once its SPA has booted, and on CI runners that boot alone was measured
|
|
471
471
|
// at ~45s past /login-callback -- a 30s wait aborted the exchange on every
|
|
472
472
|
// attempt. Ported from the already-verified 8.9/8.10 fix.
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
473
|
+
// Read the URL rather than waiting on the navigation: waitForURL waits
|
|
474
|
+
// for the `load` event, and Hub's SPA routinely starts the next
|
|
475
|
+
// navigation while the callback's load is still in flight, so Chromium
|
|
476
|
+
// reports the abandoned one as `net::ERR_ABORTED; maybe frame was
|
|
477
|
+
// detached?` even though the code exchange itself completes. That abort
|
|
478
|
+
// is not the rate-limit marker loginWithRetry backs off on, so it burned
|
|
479
|
+
// all five attempts -- 133 times across the setup project in CI run
|
|
480
|
+
// 36722117210. Polling the URL is the condition actually being waited
|
|
481
|
+
// for and cannot be aborted by a navigation.
|
|
482
|
+
await test_1.expect
|
|
483
|
+
.poll(() => page.url().includes('?code='), { timeout: 120000 })
|
|
484
|
+
.toBe(false);
|
|
476
485
|
await (0, sleep_1.sleep)(5000);
|
|
477
486
|
}
|
|
478
487
|
if (page.url().includes('modeler')) {
|
|
@@ -140,22 +140,13 @@ class WorkspaceMembersPage {
|
|
|
140
140
|
.getByRole('option', { name: new RegExp(escapeRegExp(email), 'i') })
|
|
141
141
|
.or(this.page.locator('[cmdk-item]').filter({ hasText: email }))
|
|
142
142
|
.first();
|
|
143
|
-
// The result list is a multi-select
|
|
144
|
-
//
|
|
145
|
-
//
|
|
146
|
-
//
|
|
147
|
-
// so
|
|
148
|
-
// sets cmdk's highlight -- aria-selected and data-selected both read
|
|
149
|
-
// "true" while data-staged stays "false" and "Add" stays disabled.
|
|
150
|
-
// Click the leading svg, which is the box itself, and gate on the one
|
|
151
|
-
// attribute that actually tracks the pick.
|
|
143
|
+
// The result list is a multi-select whose rows are cmdk items, not
|
|
144
|
+
// checkbox elements, so getByRole('checkbox') matches nothing. A row
|
|
145
|
+
// click only moves cmdk's highlight: aria-selected and data-selected
|
|
146
|
+
// both read "true" while the row is still unstaged and "Add" stays
|
|
147
|
+
// disabled, so neither is usable as the gate.
|
|
152
148
|
await (0, test_1.expect)(result).toBeVisible({ timeout: 30000 });
|
|
153
|
-
//
|
|
154
|
-
// is a decorative svg the design system gives `pointer-events: none`, so
|
|
155
|
-
// that click lands on the row, and a row click only moves cmdk's
|
|
156
|
-
// highlight -- across three live runs `data-staged` never left "false"
|
|
157
|
-
// while `aria-selected` read "true" and "Add" stayed disabled. The
|
|
158
|
-
// list's "Select all" control is what actually stages. It is a
|
|
149
|
+
// The list's "Select all" control is what actually stages. It is a
|
|
159
150
|
// <button data-test="members-picker-select-all">, not a cmdk item, and
|
|
160
151
|
// its label is split across text nodes ("Select all (", "1", ")"), so it
|
|
161
152
|
// is addressed by its test id. The search box above has already been
|
|
@@ -168,9 +159,14 @@ class WorkspaceMembersPage {
|
|
|
168
159
|
await this.page
|
|
169
160
|
.locator('[data-test="members-picker-select-all"]')
|
|
170
161
|
.click({ timeout: 15000 });
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
162
|
+
// The staged flag moved: hub #29735 dropped the bespoke `data-staged`
|
|
163
|
+
// attribute (and the decorative svg box next to it) in favour of the
|
|
164
|
+
// design system's `checked` prop, which renders `aria-checked`. Accept
|
|
165
|
+
// either so this holds against builds from before and after that change.
|
|
166
|
+
await test_1.expect
|
|
167
|
+
.poll(async () => (await result.getAttribute('aria-checked')) === 'true' ||
|
|
168
|
+
(await result.getAttribute('data-staged')) === 'true', { timeout: 15000 })
|
|
169
|
+
.toBe(true);
|
|
174
170
|
if (role !== 'Editor') {
|
|
175
171
|
await this.selectRoleIn(this.page.getByRole('combobox', { name: 'Workspace role' }).first(), role);
|
|
176
172
|
}
|
|
@@ -87,11 +87,10 @@ _8_8_1.test.describe('User Roles User Flow', () => {
|
|
|
87
87
|
await (0, resetSession_1.resetSessionAll)(context, page);
|
|
88
88
|
});
|
|
89
89
|
await _8_8_1.test.step('Log in as test user', async () => {
|
|
90
|
-
|
|
91
|
-
await loginPage.loginWithTestUser({
|
|
90
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, new LoginPage_1.LoginPage(page), {
|
|
92
91
|
username: process.env.C8_USERNAME_TEST_8,
|
|
93
92
|
password: process.env.C8_PASSWORD_TEST_8,
|
|
94
|
-
});
|
|
93
|
+
}, 1000);
|
|
95
94
|
await (0, sleep_1.sleep)(600000); //wait for Optimize cache to refresh
|
|
96
95
|
});
|
|
97
96
|
await _8_8_1.test.step('Navigate to Console and Ensure Apps are Available in App Switcher', async () => {
|
|
@@ -197,11 +196,10 @@ _8_8_1.test.describe('User Roles User Flow', () => {
|
|
|
197
196
|
await (0, resetSession_1.resetSession)(browser, page);
|
|
198
197
|
});
|
|
199
198
|
await _8_8_1.test.step('Log in as test user', async () => {
|
|
200
|
-
|
|
201
|
-
await loginPage.loginWithTestUser({
|
|
199
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, new LoginPage_1.LoginPage(page), {
|
|
202
200
|
username: process.env.C8_USERNAME_TEST_9,
|
|
203
201
|
password: process.env.C8_PASSWORD_TEST_9,
|
|
204
|
-
});
|
|
202
|
+
}, 1000);
|
|
205
203
|
});
|
|
206
204
|
// An organization role no longer decides on its own what a non-admin can
|
|
207
205
|
// reach. Since camunda-hub's environments work (pdp-3443, pdp-3715), a
|
|
@@ -255,10 +253,10 @@ _8_8_1.test.describe('User Roles User Flow', () => {
|
|
|
255
253
|
// switches to the main user and back rather than doing it as the
|
|
256
254
|
// analyst under test.
|
|
257
255
|
await (0, resetSession_1.resetSession)(browser, page);
|
|
258
|
-
await new LoginPage_1.LoginPage(page)
|
|
256
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, new LoginPage_1.LoginPage(page), {
|
|
259
257
|
username: process.env.C8_USERNAME,
|
|
260
258
|
password: process.env.C8_PASSWORD,
|
|
261
|
-
});
|
|
259
|
+
}, 1000);
|
|
262
260
|
const workspaceMembersPage = new WorkspaceMembersPage_1.WorkspaceMembersPage(page);
|
|
263
261
|
await workspaceMembersPage.openManageMembers(analystWorkspaceName);
|
|
264
262
|
// Flagged before the grant, not after: a failure partway through
|
|
@@ -275,10 +273,10 @@ _8_8_1.test.describe('User Roles User Flow', () => {
|
|
|
275
273
|
// button "Analyst Role Cluster").
|
|
276
274
|
await (0, consoleApiHelpers_1.linkClusterToWorkspaceViaApi)(page, workspaceMembersPage.workspaceId(), clusterName);
|
|
277
275
|
await (0, resetSession_1.resetSession)(browser, page);
|
|
278
|
-
await new LoginPage_1.LoginPage(page)
|
|
276
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, new LoginPage_1.LoginPage(page), {
|
|
279
277
|
username: process.env.C8_USERNAME_TEST_9,
|
|
280
278
|
password: process.env.C8_PASSWORD_TEST_9,
|
|
281
|
-
});
|
|
279
|
+
}, 1000);
|
|
282
280
|
});
|
|
283
281
|
await _8_8_1.test.step('Wait for the role change to reach Optimize', async () => {
|
|
284
282
|
// Replaces a blind `sleep(600000)`. The role change only takes effect in
|
|
@@ -391,11 +389,10 @@ _8_8_1.test.describe('User Roles User Flow', () => {
|
|
|
391
389
|
await (0, resetSession_1.resetSession)(browser, page);
|
|
392
390
|
});
|
|
393
391
|
await _8_8_1.test.step('Log in as test user', async () => {
|
|
394
|
-
|
|
395
|
-
await loginPage.loginWithTestUser({
|
|
392
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, new LoginPage_1.LoginPage(page), {
|
|
396
393
|
username: process.env.C8_USERNAME_TEST_10,
|
|
397
394
|
password: process.env.C8_PASSWORD_TEST_10,
|
|
398
|
-
});
|
|
395
|
+
}, 1000);
|
|
399
396
|
});
|
|
400
397
|
await _8_8_1.test.step('Wait for the role change to reach Optimize', async () => {
|
|
401
398
|
// Replaces a blind `sleep(600000)`. The role change only takes effect in
|
|
@@ -125,8 +125,15 @@ _8_8_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV1', () => {
|
|
|
125
125
|
await _8_8_1.test.step('Navigate to Tasklist and Make Sure that the Two Deployed Processes Are Accessible', async () => {
|
|
126
126
|
await appsPage.clickCamundaApps();
|
|
127
127
|
await appsPage.clickTasklist(clusterName);
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
// A single 30s wait is not enough here: Tasklist is entered right after
|
|
129
|
+
// a mid-test re-login, and the first load can land before the app has
|
|
130
|
+
// rendered its banner. Reload between attempts, as the sibling step
|
|
131
|
+
// below already does.
|
|
132
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, taskPanelPage.taskListPageBanner, {
|
|
133
|
+
visibilityTimeout: 20000,
|
|
134
|
+
postAction: async () => {
|
|
135
|
+
await page.reload();
|
|
136
|
+
},
|
|
130
137
|
});
|
|
131
138
|
await taskPanelPage.clickProcessesTab();
|
|
132
139
|
await taskProcessesPage.clickpopupContinueButton();
|
|
@@ -127,7 +127,7 @@ _8_8_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
|
127
127
|
await page.goto('/');
|
|
128
128
|
await settingsPage.clickOpenSettingsButton();
|
|
129
129
|
await settingsPage.clickLogoutButton();
|
|
130
|
-
await
|
|
130
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
131
131
|
});
|
|
132
132
|
await _8_8_1.test.step('Navigate to Tasklist and Make Sure that the Two Deployed Processes Are Not Accessible', async () => {
|
|
133
133
|
await appsPage.clickCamundaApps();
|
|
@@ -244,7 +244,7 @@ _8_8_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
|
244
244
|
await page.goto('/');
|
|
245
245
|
await settingsPage.clickOpenSettingsButton();
|
|
246
246
|
await settingsPage.clickLogoutButton();
|
|
247
|
-
await
|
|
247
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
248
248
|
});
|
|
249
249
|
await _8_8_1.test.step('Navigate to Tasklist and Only First Process Is Accessible', async () => {
|
|
250
250
|
await appsPage.clickCamundaApps();
|
|
@@ -83,8 +83,7 @@ _8_8_1.test.describe.parallel('UTR Enabled User Flows Test @tasklistV1', () => {
|
|
|
83
83
|
await page.goto('/');
|
|
84
84
|
});
|
|
85
85
|
await _8_8_1.test.step('Login with Test User and Check Tasks in Tasklist ', async () => {
|
|
86
|
-
|
|
87
|
-
await loginPage.loginWithTestUser(testUser);
|
|
86
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, new LoginPage_1.LoginPage(page), testUser, 1000);
|
|
88
87
|
await appsPage.clickCamundaApps();
|
|
89
88
|
await appsPage.clickTasklist(clusterName);
|
|
90
89
|
await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
|
|
@@ -203,8 +202,7 @@ _8_8_1.test.describe.parallel('UTR Enabled User Flows Test @tasklistV1', () => {
|
|
|
203
202
|
await page.goto('/');
|
|
204
203
|
});
|
|
205
204
|
await _8_8_1.test.step('Login with Test User and Check Tasks in Tasklist ', async () => {
|
|
206
|
-
|
|
207
|
-
await loginPage.loginWithTestUser(testUser1);
|
|
205
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, new LoginPage_1.LoginPage(page), testUser1, 1000);
|
|
208
206
|
await appsPage.clickCamundaApps();
|
|
209
207
|
await appsPage.clickTasklist(clusterName);
|
|
210
208
|
await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
|
|
@@ -228,8 +226,7 @@ _8_8_1.test.describe.parallel('UTR Enabled User Flows Test @tasklistV1', () => {
|
|
|
228
226
|
await page.goto('/');
|
|
229
227
|
});
|
|
230
228
|
await _8_8_1.test.step('Login with Second Test User and Check Tasks in Tasklist ', async () => {
|
|
231
|
-
|
|
232
|
-
await loginPage.loginWithTestUser(testUser2);
|
|
229
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, new LoginPage_1.LoginPage(page), testUser2, 1000);
|
|
233
230
|
await appsPage.clickCamundaApps();
|
|
234
231
|
await appsPage.clickTasklist(clusterName);
|
|
235
232
|
await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
|
|
@@ -54,17 +54,27 @@ async function renameHubResource(page, currentName, newName) {
|
|
|
54
54
|
await inline.press('Enter');
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
await (0, test_1.expect)(trigger).toHaveAccessibleName(`${currentName} actions`, {
|
|
58
|
-
timeout: 30000,
|
|
59
|
-
});
|
|
60
57
|
await (0, test_1.expect)(async () => {
|
|
61
58
|
if (await breadcrumbs.getByText(newName).isVisible())
|
|
62
59
|
return;
|
|
60
|
+
// Gated inside the retry rather than once before it: this resource's own
|
|
61
|
+
// breadcrumb segment is appended after the page settles, so `.last()` can
|
|
62
|
+
// still resolve to the parent's actions button for a while -- renaming
|
|
63
|
+
// through that one would rename the process application instead. As a
|
|
64
|
+
// single pre-check it failed the test outright when the segment arrived
|
|
65
|
+
// late (`"Cross Component Test Project actions"`, CI run 36725966162).
|
|
66
|
+
await (0, test_1.expect)(trigger).toHaveAccessibleName(`${currentName} actions`, {
|
|
67
|
+
timeout: 15000,
|
|
68
|
+
});
|
|
63
69
|
await trigger.click({ timeout: 15000 });
|
|
64
70
|
await page.getByRole('menuitem', { name: 'Rename' }).click({ timeout: 15000 });
|
|
65
71
|
await (0, test_1.expect)(renameInput).toBeVisible({ timeout: 15000 });
|
|
66
72
|
await renameInput.fill(newName);
|
|
67
73
|
await (0, test_1.expect)(renameInput).toHaveValue(newName, { timeout: 15000 });
|
|
74
|
+
// The dialog enables Rename only once its form has registered the value,
|
|
75
|
+
// so a click fired straight after the fill spends its whole budget
|
|
76
|
+
// retrying against a disabled button before the attempt is given up.
|
|
77
|
+
await (0, test_1.expect)(renameSubmit).toBeEnabled({ timeout: 15000 });
|
|
68
78
|
await renameSubmit.click({ timeout: 15000 });
|
|
69
79
|
await (0, test_1.expect)(breadcrumbs.getByText(newName)).toBeVisible({
|
|
70
80
|
timeout: 15000,
|