@camunda/e2e-test-suite 0.0.759 → 0.0.760

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.
@@ -89,6 +89,7 @@ declare class ModelerCreatePage {
89
89
  readonly zeebeClientIdVariable: Locator;
90
90
  readonly variableAssignmentValueTextboxThirdVariable: Locator;
91
91
  readonly connectorsDocHandlingStartEventElement: Locator;
92
+ readonly detailsPanelToggle: Locator;
92
93
  readonly timerEventOption: Locator;
93
94
  readonly timerEventSettings: Locator;
94
95
  readonly timerType: Locator;
@@ -203,6 +204,7 @@ declare class ModelerCreatePage {
203
204
  switchToPlay(): Promise<void>;
204
205
  completePlayConfiguration(clusterName: string): Promise<void>;
205
206
  embedForm(formName: string): Promise<void>;
207
+ openDetailsPanelIfCollapsed(): Promise<void>;
206
208
  fillStartEventVariablesForDocHandling(zeebeUrl: string, zeebeClientId: string, zeebeClientSecret: string): Promise<void>;
207
209
  fillZeebeClientId(clientId: string): Promise<void>;
208
210
  fillZeebeSecretValue(zeebeSecret: string): Promise<void>;
@@ -95,6 +95,7 @@ class ModelerCreatePage {
95
95
  zeebeClientIdVariable;
96
96
  variableAssignmentValueTextboxThirdVariable;
97
97
  connectorsDocHandlingStartEventElement;
98
+ detailsPanelToggle;
98
99
  timerEventOption;
99
100
  timerEventSettings;
100
101
  timerType;
@@ -276,6 +277,7 @@ class ModelerCreatePage {
276
277
  .getByText('zeebeClientId');
277
278
  this.variableAssignmentValueTextboxThirdVariable = page.locator('#bio-properties-panel-StartEvent_1-output-2-source div');
278
279
  this.connectorsDocHandlingStartEventElement = page.locator('g:nth-child(5) > .djs-element > .djs-hit');
280
+ this.detailsPanelToggle = page.locator('[data-test="details-panel-toggle"]');
279
281
  this.timerEventOption = page.getByRole('listitem', {
280
282
  name: 'Timer intermediate catch event',
281
283
  exact: true,
@@ -1152,12 +1154,24 @@ class ModelerCreatePage {
1152
1154
  await this.clickForm(formName);
1153
1155
  await this.clickEmbedButton();
1154
1156
  }
1157
+ async openDetailsPanelIfCollapsed() {
1158
+ await (0, test_1.expect)(this.detailsPanelToggle).toBeVisible({ timeout: 60000 });
1159
+ const isCollapsed = (await this.detailsPanelToggle.getAttribute('aria-expanded')) === 'false';
1160
+ if (isCollapsed) {
1161
+ await this.detailsPanelToggle.click({ timeout: 60000 });
1162
+ }
1163
+ }
1155
1164
  async fillStartEventVariablesForDocHandling(zeebeUrl, zeebeClientId, zeebeClientSecret) {
1156
1165
  console.log(`URL: ${zeebeUrl}, ClientId: ${zeebeClientId}, Secret: ${zeebeClientSecret}`);
1157
1166
  await (0, test_1.expect)(this.connectorsDocHandlingStartEventElement).toBeVisible({
1158
1167
  timeout: 60000,
1159
1168
  });
1160
1169
  await this.connectorsDocHandlingStartEventElement.click();
1170
+ // After the page reload in modelAndRunConnectorsDocHandlingDiagram the
1171
+ // modeler's Details (properties) panel is collapsed, so the start event's
1172
+ // "Output mapping" group is not rendered. Re-open the panel before
1173
+ // asserting on its contents.
1174
+ await this.openDetailsPanelIfCollapsed();
1161
1175
  await (0, test_1.expect)(this.startEventVariableInputWithThreeVariables).toBeVisible({
1162
1176
  timeout: 60000,
1163
1177
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.759",
3
+ "version": "0.0.760",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",