@camunda/e2e-test-suite 0.0.1458 → 0.0.1459

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.
@@ -10,6 +10,7 @@ declare class TaskPanelPage {
10
10
  readonly expandButton: Locator;
11
11
  readonly processesInfoText: Locator;
12
12
  constructor(page: Page);
13
+ waitForTasklistLoaded(timeout?: number): Promise<void>;
13
14
  openTask(name: string, taskKeys?: string[]): Promise<void>;
14
15
  filterBy(option: 'All open' | 'Unassigned' | 'Assigned to me' | 'Completed'): Promise<void>;
15
16
  taskCount(name: string): Promise<number>;
@@ -30,6 +30,27 @@ class TaskPanelPage {
30
30
  });
31
31
  this.processesInfoText = page.getByText('Browse and run processes published by your organization');
32
32
  }
33
+ // Tasklist renders its route error page ("Something went wrong") when its
34
+ // lazily loaded JS chunks 404 -- seen on the AWS cluster when index.html
35
+ // and the asset chunks came from different builds. A reload fetches a
36
+ // consistent shell + chunks; the banner assertion itself is unchanged.
37
+ async waitForTasklistLoaded(timeout = 120000) {
38
+ const errorPage = this.page.getByRole('heading', {
39
+ name: 'Something went wrong',
40
+ });
41
+ const maxReloads = 3;
42
+ for (let attempt = 1; attempt <= maxReloads; attempt++) {
43
+ await (0, test_1.expect)(this.taskListPageBanner.or(errorPage).first()).toBeVisible({
44
+ timeout,
45
+ });
46
+ if (await this.taskListPageBanner.isVisible()) {
47
+ return;
48
+ }
49
+ console.warn(`Tasklist failed to load (attempt ${attempt}/${maxReloads}), reloading`);
50
+ await this.page.reload();
51
+ }
52
+ await (0, test_1.expect)(this.taskListPageBanner).toBeVisible({ timeout });
53
+ }
33
54
  async openTask(name, taskKeys) {
34
55
  let attempts = 0;
35
56
  // Tasklist's importer can lag well behind Zeebe under heavy concurrent
@@ -94,9 +94,7 @@ _8_8_1.test.describe('AWS Cluster User Flows Test', () => {
94
94
  await _8_8_1.test.step('Navigate to Tasklist and Assert Document Upload And Preview', async () => {
95
95
  await appsPage.clickCamundaApps();
96
96
  await appsPage.clickTasklist(clusterName);
97
- await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
98
- timeout: 120000,
99
- });
97
+ await taskPanelPage.waitForTasklistLoaded();
100
98
  await taskPanelPage.openTask(processName);
101
99
  await taskDetailsPage.clickAssignToMeButton();
102
100
  await (0, fileUpload_1.uploadFile)(page, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1458",
3
+ "version": "0.0.1459",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",