@camunda/e2e-test-suite 0.0.1776 → 0.0.1778

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.
@@ -12,6 +12,7 @@ declare class TaskPanelPage {
12
12
  readonly processesInfoText: Locator;
13
13
  constructor(page: Page);
14
14
  taskInList(name: string): Locator;
15
+ static readonly suspendedTaskName: RegExp;
15
16
  taskLink(processName: string): Locator;
16
17
  openTask(name: string, totalTimeout?: number): Promise<void>;
17
18
  filterBy(option: 'All open tasks' | 'Unassigned' | 'Assigned to me' | 'Completed'): Promise<void>;
@@ -73,6 +73,9 @@ class TaskPanelPage {
73
73
  taskInList(name) {
74
74
  return this.availableTasks.getByText(name, { exact: true }).first();
75
75
  }
76
+ // Older images append "(suspended)" via aria-label; newer ones name the link
77
+ // after its content, which includes the suspended icon's description.
78
+ static suspendedTaskName = /\(suspended\)$|Process instance suspended\./;
76
79
  // The link's accessible name is the task's own display name, not the
77
80
  // process name -- the process name is only the card's visible subtitle, so
78
81
  // find the card by that text first and read the link inside it.
@@ -11,6 +11,7 @@ const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWi
11
11
  const users_1 = require("../../utils/users");
12
12
  const OperateProcessInstancePage_1 = require("../../pages/8.11/OperateProcessInstancePage");
13
13
  const apiHelpers_1 = require("../../utils/apiHelpers");
14
+ const TaskPanelPage_1 = require("../../pages/8.11/TaskPanelPage");
14
15
  const testUser = (0, users_1.getTestUser)('nineteenthUser');
15
16
  _8_11_1.test.describe.configure({ mode: 'parallel' });
16
17
  _8_11_1.test.describe('HTO User Flow Tests', () => {
@@ -410,7 +411,7 @@ _8_11_1.test.describe('HTO User Flow Tests', () => {
410
411
  });
411
412
  });
412
413
  await _8_11_1.test.step('Assert the Open Task Updates In Place to Suspended, Without Reopening It', async () => {
413
- await (0, test_1.expect)(taskPanelPage.taskLink(processName)).toHaveAccessibleName(/\(suspended\)$/, { timeout: 60000 });
414
+ await (0, test_1.expect)(taskPanelPage.taskLink(processName)).toHaveAccessibleName(TaskPanelPage_1.TaskPanelPage.suspendedTaskName, { timeout: 60000 });
414
415
  await (0, test_1.expect)(taskDetailsPage.suspendedLabel).toBeVisible({
415
416
  timeout: 60000,
416
417
  });
@@ -423,7 +424,9 @@ _8_11_1.test.describe('HTO User Flow Tests', () => {
423
424
  await (0, test_1.expect)(operateProcessInstancePage.suspendedIcon).toBeHidden({
424
425
  timeout: 60000,
425
426
  });
426
- await (0, test_1.expect)(taskPanelPage.taskLink(processName)).not.toHaveAccessibleName(/\(suspended\)$/, { timeout: 60000 });
427
+ await (0, test_1.expect)(taskPanelPage.taskLink(processName)).not.toHaveAccessibleName(TaskPanelPage_1.TaskPanelPage.suspendedTaskName, {
428
+ timeout: 60000,
429
+ });
427
430
  await (0, test_1.expect)(taskDetailsPage.suspendedLabel).toBeHidden({
428
431
  timeout: 60000,
429
432
  });
@@ -65,7 +65,8 @@ c8Run_8_8_1.test.describe('HTO User Flow Tests', () => {
65
65
  await operateProcessInstancePage.completedIconAssertion();
66
66
  });
67
67
  });
68
- (0, c8Run_8_8_1.test)('User Task Editing Variables Flow', async ({ page, operateHomePage, operateProcessesPage, operateProcessInstancePage, taskPanelPage, taskListLoginPage, operateLoginPage, taskDetailsPage, }) => {
68
+ // Skipped due to bug #66364: https://github.com/camunda/camunda/issues/66364
69
+ c8Run_8_8_1.test.skip('User Task Editing Variables Flow', async ({ page, operateHomePage, operateProcessesPage, operateProcessInstancePage, taskPanelPage, taskListLoginPage, operateLoginPage, taskDetailsPage, }) => {
69
70
  await c8Run_8_8_1.test.step('View Process Instance in Operate, Edit the Variable & Assert the Variable is Updated in Tasklist', async () => {
70
71
  await (0, UtilitiesPage_1.navigateToApp)(page, 'operate');
71
72
  await operateLoginPage.login('demo', 'demo');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1776",
3
+ "version": "0.0.1778",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",