@camunda/e2e-test-suite 0.0.895 → 0.0.897
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.
|
@@ -164,11 +164,14 @@ class ModelerCreatePage {
|
|
|
164
164
|
this.clientIdTextbox = page.getByLabel('Client ID');
|
|
165
165
|
this.clientSecretTextbox = page.getByLabel('Client secret');
|
|
166
166
|
this.rememberCredentialsCheckbox = page.getByText('Remember credentials');
|
|
167
|
+
// A name query matches every project-local copy of this template too
|
|
168
|
+
// ("Webhook Message Start Event Connector - Copy", left behind by earlier
|
|
169
|
+
// marketplace imports), so it resolves to several options and clicking
|
|
170
|
+
// throws in strict mode. Target the bundled template by its stable entry
|
|
171
|
+
// id, the same way restConnectorOption does.
|
|
167
172
|
this.webhookMessageStartEventConnectorOption = page
|
|
168
173
|
.locator('.djs-popup-results')
|
|
169
|
-
.
|
|
170
|
-
name: 'Webhook Message Start Event Connector',
|
|
171
|
-
});
|
|
174
|
+
.locator('[data-id="replace.template-io.camunda.connectors.webhook.WebhookConnectorStartMessage.v1"]');
|
|
172
175
|
this.webhookIdInput = page.getByLabel('Webhook ID');
|
|
173
176
|
this.firstElement = page.locator('.djs-element.djs-shape').nth(0);
|
|
174
177
|
this.secondElement = page.locator('.djs-element.djs-shape').nth(1);
|
|
@@ -176,7 +179,10 @@ class ModelerCreatePage {
|
|
|
176
179
|
this.implementationSection = page.locator('[data-group-id="group-userTaskImplementation"]');
|
|
177
180
|
this.implementationOptions = page.locator('#bio-properties-panel-userTaskImplementation');
|
|
178
181
|
this.assignmentSection = page.locator('[data-group-id="group-assignmentDefinition"]');
|
|
179
|
-
|
|
182
|
+
// The user-task priority entry renders as <input type="number">, whose ARIA
|
|
183
|
+
// role is spinbutton, not textbox — so a textbox role query never resolves.
|
|
184
|
+
// Target it by its stable properties-panel entry id instead.
|
|
185
|
+
this.priorityInput = page.locator('#bio-properties-panel-priorityDefinitionPriority');
|
|
180
186
|
this.appendElementButton = page
|
|
181
187
|
.locator('[class="djs-context-pad open"]')
|
|
182
188
|
.first();
|
|
@@ -196,9 +202,7 @@ class ModelerCreatePage {
|
|
|
196
202
|
});
|
|
197
203
|
this.intermediateWebhookConnectorOption = page
|
|
198
204
|
.locator('.djs-popup-results')
|
|
199
|
-
.
|
|
200
|
-
name: 'Webhook Intermediate Event Connector',
|
|
201
|
-
});
|
|
205
|
+
.locator('[data-id="replace.template-io.camunda.connectors.webhook.WebhookConnectorIntermediate.v1"]');
|
|
202
206
|
this.correlationKeyPayloadInput = page.getByLabel('Correlation key (payload)');
|
|
203
207
|
this.correlationKeyProcessInput = page.getByLabel('Correlation key (process)');
|
|
204
208
|
this.playTab = page.getByRole('tab', {
|
|
@@ -1002,11 +1006,16 @@ class ModelerCreatePage {
|
|
|
1002
1006
|
}
|
|
1003
1007
|
}
|
|
1004
1008
|
async expandAssignmentSection() {
|
|
1009
|
+
// Scoped to assignmentSection already, so the group-id must not be repeated
|
|
1010
|
+
// here: a self-nested selector never matches, the guard always reads
|
|
1011
|
+
// "collapsed" and the click then toggles an open section shut.
|
|
1005
1012
|
const isExpanded = (await this.assignmentSection
|
|
1006
|
-
.locator('
|
|
1013
|
+
.locator('.bio-properties-panel-group-header.open')
|
|
1007
1014
|
.count()) > 0;
|
|
1008
1015
|
if (!isExpanded) {
|
|
1009
|
-
await this.assignmentSection
|
|
1016
|
+
await this.assignmentSection
|
|
1017
|
+
.locator('.bio-properties-panel-group-header')
|
|
1018
|
+
.click({ timeout: 60000 });
|
|
1010
1019
|
}
|
|
1011
1020
|
}
|
|
1012
1021
|
async clickAppendElementButton() {
|
|
@@ -1035,7 +1044,10 @@ class ModelerCreatePage {
|
|
|
1035
1044
|
await this.priorityInput.click();
|
|
1036
1045
|
}
|
|
1037
1046
|
catch (error) {
|
|
1038
|
-
|
|
1047
|
+
// Re-expand through the guard rather than clicking the section header
|
|
1048
|
+
// directly — a bare click toggles an already-open section shut and takes
|
|
1049
|
+
// the priority entry out of the DOM for the retry below.
|
|
1050
|
+
await this.expandAssignmentSection();
|
|
1039
1051
|
await this.priorityInput.click({ timeout: 60000 });
|
|
1040
1052
|
}
|
|
1041
1053
|
}
|