@camunda/e2e-test-suite 0.0.1776 → 0.0.1777
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(
|
|
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(
|
|
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
|
});
|