@camunda/e2e-test-suite 0.0.423 → 0.0.424

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.
@@ -398,9 +398,11 @@ class ModelerCreatePage {
398
398
  async fillIdInput(id) {
399
399
  try {
400
400
  await this.processIdInput.fill(id);
401
+ await (0, test_1.expect)(this.processIdInput).toHaveValue(id);
401
402
  }
402
403
  catch {
403
404
  await this.processIdSecondLocator.fill(id);
405
+ await (0, test_1.expect)(this.processIdSecondLocator).toHaveValue(id);
404
406
  }
405
407
  }
406
408
  async clickElemendIdInput() {
@@ -562,6 +564,7 @@ class ModelerCreatePage {
562
564
  }
563
565
  async fillNameInput(name) {
564
566
  await this.nameInput.fill(name);
567
+ await (0, test_1.expect)(this.nameInput).toHaveValue(name);
565
568
  }
566
569
  async clickJobTypeInput() {
567
570
  await this.jobTypeInput.click();
@@ -578,6 +581,7 @@ class ModelerCreatePage {
578
581
  async enterDiagramName(name) {
579
582
  await this.diagramNameInput.fill(name, { timeout: 60000 });
580
583
  await this.diagramNameInput.press('Enter', { timeout: 60000 });
584
+ await (0, sleep_1.sleep)(1000);
581
585
  }
582
586
  async clickVariableInput() {
583
587
  await this.variableInput.click();
@@ -149,7 +149,7 @@ SM_8_9_1.test.describe('Web Modeler User Flow Tests', () => {
149
149
  await (0, fileUpload_1.uploadFile)(page, bpmnFileName);
150
150
  });
151
151
  await SM_8_9_1.test.step('Open uploaded BPMN diagram', async () => {
152
- await (0, sleep_1.sleep)(5000);
152
+ await (0, sleep_1.sleep)(3000); // Wait for file upload to be processed before clicking
153
153
  await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
154
154
  await modelerCreatePage.clickDiagramBreadcrumb();
155
155
  await modelerCreatePage.clickEditDiagramNameButton();
@@ -159,13 +159,14 @@ SM_8_9_1.test.describe('Web Modeler User Flow Tests', () => {
159
159
  await modelerCreatePage.fillNameInput(processName);
160
160
  await modelerCreatePage.clickIdInput();
161
161
  await modelerCreatePage.fillIdInput(processName);
162
- await (0, sleep_1.sleep)(10000);
162
+ await (0, sleep_1.sleep)(2000); // Allow modeler auto-save to persist changes
163
163
  });
164
164
  await SM_8_9_1.test.step('Deploy and run process with variable', async () => {
165
165
  const variables = '{"myVar": 8}';
166
166
  await modelerCreatePage.runProcessInstance(variables);
167
167
  });
168
168
  await SM_8_9_1.test.step('View process instance in Operate and verify completion', async () => {
169
+ await (0, sleep_1.sleep)(3000); // Allow Zeebe to index the instance before navigating to Operate
169
170
  await navigationPage.goToOperate();
170
171
  await operateHomePage.clickProcessesTab();
171
172
  await operateProcessesPage.clickProcessInstanceLink(processName, 'completed');
@@ -176,11 +177,13 @@ SM_8_9_1.test.describe('Web Modeler User Flow Tests', () => {
176
177
  await SM_8_9_1.test.step('Navigate to Optimize and verify process in dashboard', async () => {
177
178
  await navigationPage.goToOptimize();
178
179
  await optimizeHomePage.clickDashboardLink();
179
- await (0, sleep_1.sleep)(60000);
180
+ await (0, sleep_1.sleep)(3000); // Brief wait for Optimize dashboard to initialize
180
181
  await page.reload();
181
182
  await optimizeDashboardPage.clickFilterTable();
182
183
  await optimizeDashboardPage.fillFilterTable(processName);
183
- await optimizeDashboardPage.processAssertion(processName);
184
+ await optimizeDashboardPage.processAssertion(processName, {
185
+ timeout: 60000,
186
+ });
184
187
  });
185
188
  }
186
189
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.423",
3
+ "version": "0.0.424",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",