@camunda/e2e-test-suite 0.0.1774 → 0.0.1776
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.
|
@@ -41,10 +41,10 @@ class TaskPanelPage {
|
|
|
41
41
|
// dual-shell locators in OCIdentityHomePage).
|
|
42
42
|
this.filterPanelExpandButton = page.locator('button[aria-controls="task-nav-bar"][aria-expanded="false"]');
|
|
43
43
|
this.filterPanelCollapseButton = page.locator('button[aria-controls="task-nav-bar"][aria-expanded="true"]');
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
});
|
|
44
|
+
// The redesigned trigger's accessible name carries the current selection
|
|
45
|
+
// ("Filters: All open tasks"), so anchor on the leading "Filters" -- an
|
|
46
|
+
// exact "Filters" stopped matching once a value was shown.
|
|
47
|
+
this.filterSelectButton = page.getByRole('button', { name: /^Filters/ });
|
|
48
48
|
// The header logo's accessible name is now just "Camunda logo" -- the
|
|
49
49
|
// per-app suffix ("Camunda logo Tasklist") was dropped when Tasklist's
|
|
50
50
|
// header moved off the old Carbon shell (matches the already-corrected
|
|
@@ -39,10 +39,15 @@ class TaskPanelPage {
|
|
|
39
39
|
// expanded `<nav id="task-nav-bar">` listing each filter as a `<Link>`,
|
|
40
40
|
// and an `<h1>` naming the active filter.
|
|
41
41
|
// camunda/camunda `main` is 8.11.0-SNAPSHOT and has replaced that with the
|
|
42
|
-
// Design System `FilterSelect`: one always-visible trigger
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
42
|
+
// Design System `FilterSelect`: one always-visible trigger opening a menu of
|
|
43
|
+
// `menuitem`s, no expand/collapse control and no `<h1>`. The monorepo's helm
|
|
44
|
+
// e2e deploys an image built from that commit, so it is the shell seen there.
|
|
45
|
+
// The trigger's accessible name (`taskFiltersHeaderAria`) is plain
|
|
46
|
+
// "Filters" on the first FilterSelect images and "Filters: <selected
|
|
47
|
+
// filter>" once it started carrying the active filter -- the visible label
|
|
48
|
+
// then shows only the filter, e.g. "All open tasks". Match both so the
|
|
49
|
+
// lagging published image the SM nightly deploys and the newer monorepo
|
|
50
|
+
// build both resolve.
|
|
46
51
|
// Matching only one shell is what made this pair of surfaces trade
|
|
47
52
|
// failures: targeting the Carbon rail found no expand control on the
|
|
48
53
|
// monorepo run, and targeting the dropdown found no "Filters" button at
|
|
@@ -50,8 +55,7 @@ class TaskPanelPage {
|
|
|
50
55
|
this.filterPanelExpandButton = page.locator('button[aria-controls="task-nav-bar"][aria-expanded="false"]');
|
|
51
56
|
this.filterPanelCollapseButton = page.locator('button[aria-controls="task-nav-bar"][aria-expanded="true"]');
|
|
52
57
|
this.filterSelectButton = page.getByRole('button', {
|
|
53
|
-
name:
|
|
54
|
-
exact: true,
|
|
58
|
+
name: /^Filters(:|$)/,
|
|
55
59
|
});
|
|
56
60
|
// "the task panel's filter control is on screen", whichever shell renders
|
|
57
61
|
// it: the Carbon rail shows the expand control when collapsed and the
|
|
@@ -11,6 +11,11 @@ const OperateHomePage_1 = require("../../pages/SM-8.11/OperateHomePage");
|
|
|
11
11
|
const OperateProcessesPage_1 = require("../../pages/SM-8.11/OperateProcessesPage");
|
|
12
12
|
const OperateProcessInstancePage_1 = require("../../pages/SM-8.11/OperateProcessInstancePage");
|
|
13
13
|
const apiHelpers_1 = require("../../utils/apiHelpers");
|
|
14
|
+
// Older Tasklist images append "(suspended)" to the task link's aria-label;
|
|
15
|
+
// newer ones drop that and let the name fall out of the card content, which
|
|
16
|
+
// includes the suspended icon's description. Match both so the lagging
|
|
17
|
+
// published image and the newer monorepo build both resolve.
|
|
18
|
+
const SUSPENDED_TASK_NAME = /\(suspended\)$|Process instance suspended\./;
|
|
14
19
|
SM_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
15
20
|
SM_8_11_1.test.describe('HTO User Flow Tests', () => {
|
|
16
21
|
const mtTenant = process.env.IS_MT === 'true' ? '<default>' : '';
|
|
@@ -464,7 +469,7 @@ SM_8_11_1.test.describe('HTO User Flow Tests', () => {
|
|
|
464
469
|
// Return to this tab as a user would, firing the visibility refetch that
|
|
465
470
|
// updates the open panel in place (no reselection, so still "in place").
|
|
466
471
|
await page.bringToFront();
|
|
467
|
-
await (0, test_1.expect)(taskPanelPage.taskLink(processName)).toHaveAccessibleName(
|
|
472
|
+
await (0, test_1.expect)(taskPanelPage.taskLink(processName)).toHaveAccessibleName(SUSPENDED_TASK_NAME, { timeout: 60000 });
|
|
468
473
|
await (0, test_1.expect)(taskDetailsPage.suspendedLabel(processName)).toBeVisible({
|
|
469
474
|
timeout: 60000,
|
|
470
475
|
});
|
|
@@ -491,7 +496,7 @@ SM_8_11_1.test.describe('HTO User Flow Tests', () => {
|
|
|
491
496
|
// clears the suspended state and re-enables the actions in place (see the
|
|
492
497
|
// suspend step above for why the backgrounded tab does not refetch).
|
|
493
498
|
await page.bringToFront();
|
|
494
|
-
await (0, test_1.expect)(taskPanelPage.taskLink(processName)).not.toHaveAccessibleName(
|
|
499
|
+
await (0, test_1.expect)(taskPanelPage.taskLink(processName)).not.toHaveAccessibleName(SUSPENDED_TASK_NAME, { timeout: 60000 });
|
|
495
500
|
await (0, test_1.expect)(taskDetailsPage.suspendedLabel(processName)).toBeHidden({
|
|
496
501
|
timeout: 60000,
|
|
497
502
|
});
|