@camunda/e2e-test-suite 0.0.896 → 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,11 @@ 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
|
-
//
|
|
168
|
-
//
|
|
169
|
-
//
|
|
170
|
-
//
|
|
171
|
-
//
|
|
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.
|
|
172
172
|
this.webhookMessageStartEventConnectorOption = page
|
|
173
173
|
.locator('.djs-popup-results')
|
|
174
174
|
.locator('[data-id="replace.template-io.camunda.connectors.webhook.WebhookConnectorStartMessage.v1"]');
|
|
@@ -179,10 +179,9 @@ class ModelerCreatePage {
|
|
|
179
179
|
this.implementationSection = page.locator('[data-group-id="group-userTaskImplementation"]');
|
|
180
180
|
this.implementationOptions = page.locator('#bio-properties-panel-userTaskImplementation');
|
|
181
181
|
this.assignmentSection = page.locator('[data-group-id="group-assignmentDefinition"]');
|
|
182
|
-
// The user-task priority
|
|
183
|
-
//
|
|
184
|
-
//
|
|
185
|
-
// which any name-based query matches as well.
|
|
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.
|
|
186
185
|
this.priorityInput = page.locator('#bio-properties-panel-priorityDefinitionPriority');
|
|
187
186
|
this.appendElementButton = page
|
|
188
187
|
.locator('[class="djs-context-pad open"]')
|
|
@@ -1007,6 +1006,9 @@ class ModelerCreatePage {
|
|
|
1007
1006
|
}
|
|
1008
1007
|
}
|
|
1009
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.
|
|
1010
1012
|
const isExpanded = (await this.assignmentSection
|
|
1011
1013
|
.locator('.bio-properties-panel-group-header.open')
|
|
1012
1014
|
.count()) > 0;
|
|
@@ -1042,6 +1044,9 @@ class ModelerCreatePage {
|
|
|
1042
1044
|
await this.priorityInput.click();
|
|
1043
1045
|
}
|
|
1044
1046
|
catch (error) {
|
|
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.
|
|
1045
1050
|
await this.expandAssignmentSection();
|
|
1046
1051
|
await this.priorityInput.click({ timeout: 60000 });
|
|
1047
1052
|
}
|