@camunda/e2e-test-suite 0.0.573 → 0.0.575
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/ModelerHomePage.js +7 -0
- package/dist/pages/8.6/ModelerHomePage.js +7 -0
- package/dist/pages/8.9/ModelerHomePage.js +7 -0
- package/dist/pages/SM-8.9/ConnectorSettingsPage.js +3 -0
- package/dist/pages/SM-8.9/ModelerCreatePage.js +4 -1
- package/dist/pages/SM-8.9/UtilitiesPage.js +6 -0
- package/package.json +1 -1
|
@@ -173,9 +173,16 @@ class ModelerHomePage {
|
|
|
173
173
|
}
|
|
174
174
|
async clickCrossComponentProjectFolder() {
|
|
175
175
|
await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.crossComponentProjectFolder, {
|
|
176
|
+
visibilityTimeout: 60000,
|
|
177
|
+
totalTimeout: 180000,
|
|
178
|
+
maxRetries: 5,
|
|
176
179
|
preAction: async () => {
|
|
177
180
|
await this.clickMessageBanner();
|
|
178
181
|
},
|
|
182
|
+
postAction: async () => {
|
|
183
|
+
await this.page.reload();
|
|
184
|
+
await this.page.waitForLoadState('domcontentloaded');
|
|
185
|
+
},
|
|
179
186
|
});
|
|
180
187
|
}
|
|
181
188
|
async createCrossComponentProjectFolder() {
|
|
@@ -121,9 +121,16 @@ class ModelerHomePage {
|
|
|
121
121
|
}
|
|
122
122
|
async clickCrossComponentProjectFolder() {
|
|
123
123
|
await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.crossComponentProjectFolder, {
|
|
124
|
+
visibilityTimeout: 60000,
|
|
125
|
+
totalTimeout: 180000,
|
|
126
|
+
maxRetries: 5,
|
|
124
127
|
preAction: async () => {
|
|
125
128
|
await this.clickMessageBanner();
|
|
126
129
|
},
|
|
130
|
+
postAction: async () => {
|
|
131
|
+
await this.page.reload();
|
|
132
|
+
await this.page.waitForLoadState('domcontentloaded');
|
|
133
|
+
},
|
|
127
134
|
});
|
|
128
135
|
}
|
|
129
136
|
async createForm(formName) {
|
|
@@ -173,9 +173,16 @@ class ModelerHomePage {
|
|
|
173
173
|
}
|
|
174
174
|
async clickCrossComponentProjectFolder() {
|
|
175
175
|
await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.crossComponentProjectFolder, {
|
|
176
|
+
visibilityTimeout: 60000,
|
|
177
|
+
totalTimeout: 180000,
|
|
178
|
+
maxRetries: 5,
|
|
176
179
|
preAction: async () => {
|
|
177
180
|
await this.clickMessageBanner();
|
|
178
181
|
},
|
|
182
|
+
postAction: async () => {
|
|
183
|
+
await this.page.reload();
|
|
184
|
+
await this.page.waitForLoadState('domcontentloaded');
|
|
185
|
+
},
|
|
179
186
|
});
|
|
180
187
|
}
|
|
181
188
|
async createCrossComponentProjectFolder() {
|
|
@@ -86,6 +86,9 @@ class ConnectorSettingsPage {
|
|
|
86
86
|
}
|
|
87
87
|
async fillUsernameInput(username) {
|
|
88
88
|
await this.usernameInput.fill(username, { timeout: 30000 });
|
|
89
|
+
// Press Tab to trigger blur, which commits the value and clears the
|
|
90
|
+
// "Username must not be empty." validation error in the FEEL expression field.
|
|
91
|
+
await this.usernameInput.press('Tab');
|
|
89
92
|
await (0, test_1.expect)(this.page.getByText('Username must not be empty.')).not.toBeVisible({ timeout: 30000 });
|
|
90
93
|
}
|
|
91
94
|
async clickPasswordInput() {
|
|
@@ -978,7 +978,10 @@ class ModelerCreatePage {
|
|
|
978
978
|
catch {
|
|
979
979
|
await this.nameInput.click();
|
|
980
980
|
await this.nameInput.fill(processName);
|
|
981
|
-
|
|
981
|
+
// Press Enter to commit the name into the BPMN model before focus moves
|
|
982
|
+
// away. Without this the value may not persist when the canvas element
|
|
983
|
+
// is clicked next (properties panel re-renders discarding uncommitted edits).
|
|
984
|
+
await this.nameInput.press('Enter');
|
|
982
985
|
}
|
|
983
986
|
}
|
|
984
987
|
async switchToImplementTab() {
|
|
@@ -149,6 +149,12 @@ async function modelRestConnector(modelerCreatePage, connectorSettingsPage, conn
|
|
|
149
149
|
await modelerCreatePage.enterDiagramName(processName);
|
|
150
150
|
await (0, sleep_1.sleep)(1000);
|
|
151
151
|
await modelerCreatePage.clickCanvas();
|
|
152
|
+
// Wait for the canvas click to register and the process-level General panel to
|
|
153
|
+
// become visible before interacting with it. Without this wait the panel may
|
|
154
|
+
// still reflect the previous element selection and the ID/name fills target
|
|
155
|
+
// the wrong (or a hidden) element, leaving the BPMN process name as the
|
|
156
|
+
// default "New BPMN diagram" when deployed.
|
|
157
|
+
await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({ timeout: 60000 });
|
|
152
158
|
await modelerCreatePage.clickGeneralPropertiesPanel();
|
|
153
159
|
await modelerCreatePage.clickIdInput();
|
|
154
160
|
await modelerCreatePage.fillIdInput(processName);
|