@camunda/e2e-test-suite 0.0.893 → 0.0.894
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.
|
@@ -103,28 +103,41 @@ class ModelerHomePage {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
async enterNewProjectName(name) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
// The inline rename silently drops the value when the editable title field
|
|
107
|
+
// is not yet in edit mode as fill() runs, leaving the project named
|
|
108
|
+
// "New project". Re-enter until the field reflects the requested name.
|
|
109
|
+
//
|
|
110
|
+
// Once the rename commits, the editable input unmounts and the name
|
|
111
|
+
// renders as static text: on the projects list as a `[title="<name>"]`
|
|
112
|
+
// link, and on the project detail page (where this inline rename runs) as
|
|
113
|
+
// the breadcrumb project button's text. Treat either committed-name
|
|
114
|
+
// rendering as success, and confirm it reflects the PERSISTED state (the
|
|
115
|
+
// breadcrumb can optimistically show the typed name then revert to
|
|
116
|
+
// "New project"), so verify after a reload.
|
|
117
|
+
const committedProjectName = this.page
|
|
118
|
+
.getByTitle(name, { exact: true })
|
|
119
|
+
.or(this.page
|
|
120
|
+
.locator('[data-test="breadcrumb-project-menu"]')
|
|
121
|
+
.filter({ hasText: name }));
|
|
122
|
+
await (0, test_1.expect)(async () => {
|
|
123
|
+
if (await committedProjectName.first().isVisible()) {
|
|
116
124
|
return;
|
|
117
125
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
await this.projectNameInput.first().click({ timeout: 15000 });
|
|
127
|
+
await this.projectNameInput.first().fill(name);
|
|
128
|
+
// Confirm the value actually landed in the edit field before committing;
|
|
129
|
+
// if fill() ran before edit mode was active the input stays empty/default
|
|
130
|
+
// and this fails, so toPass retries with a fresh click.
|
|
131
|
+
await (0, test_1.expect)(this.projectNameInput.first()).toHaveValue(name, {
|
|
132
|
+
timeout: 5000,
|
|
133
|
+
});
|
|
134
|
+
await this.projectNameInput.first().press('Enter');
|
|
135
|
+
await (0, sleep_1.sleep)(1000);
|
|
136
|
+
// Reload so the check reflects the PERSISTED server state, not the
|
|
137
|
+
// optimistic client render that can silently revert to "New project".
|
|
138
|
+
await this.page.reload();
|
|
139
|
+
await (0, test_1.expect)(committedProjectName.first()).toBeVisible({ timeout: 15000 });
|
|
140
|
+
}).toPass({ timeout: 120000 });
|
|
128
141
|
}
|
|
129
142
|
async enterIdpApplicationName(name) {
|
|
130
143
|
await this.idpApplicationNameInput.click({ timeout: 60000 });
|
|
@@ -35,7 +35,7 @@ _8_8_1.test.describe('User Roles User Flow', () => {
|
|
|
35
35
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
36
36
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
37
37
|
});
|
|
38
|
-
//Skipped due to bug
|
|
38
|
+
// Skipped due to bug #58514: https://github.com/camunda/camunda/issues/58514
|
|
39
39
|
_8_8_1.test.skip('Modeler Role User Flow', async ({ page, modelerHomePage, appsPage, homePage, clusterPage, clusterDetailsPage, context, consoleOrganizationsPage, settingsPage, operateHomePage, ocIdentityHomePage, taskPanelPage, optimizeHomePage, modelerCreatePage, }) => {
|
|
40
40
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
41
41
|
const processName = 'User Roles User Flow' + randomString;
|
|
@@ -405,7 +405,6 @@ _8_8_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
405
405
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(operateProcessInstancePage, operateProcessInstancePage.completedIcon, 'Completed icon', 60000, false, 5);
|
|
406
406
|
});
|
|
407
407
|
});
|
|
408
|
-
//Skipped due to bug 22577: https://github.com/camunda/camunda-hub/issues/22577
|
|
409
408
|
(0, _8_8_1.test)('Public Start Form @tasklistV1', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, formJsPage, taskDetailsPage, taskPanelPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, browser, }) => {
|
|
410
409
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
411
410
|
const processName = 'User_Task_Process_With_Public_Form' + randomString;
|