@camunda/e2e-test-suite 0.0.1664 → 0.0.1666

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.
@@ -113,7 +113,7 @@ declare class IdpCreatePage {
113
113
  assertClassificationModelName(expectedModel: string): Promise<void>;
114
114
  assertClassificationAccuracy(expectedAccuracy: string): Promise<void>;
115
115
  assertClassificationAccuracyIsPresent(): Promise<void>;
116
- classifyingProgressIsComplete(): Promise<void>;
116
+ classifyingProgressIsComplete(maxAttempts?: number): Promise<void>;
117
117
  assertClassificationTemplateSuccessNotification(): Promise<void>;
118
118
  selectProvider(provider: string): Promise<void>;
119
119
  }
@@ -593,15 +593,35 @@ class IdpCreatePage {
593
593
  });
594
594
  await (0, test_1.expect)(this.classificationAccuracyValue).toHaveText(/^\d+%$/);
595
595
  }
596
- async classifyingProgressIsComplete() {
597
- // Web Modeler runs classification as a process instance with a 600s
598
- // incident timer (camunda-hub `performClassification` ->
599
- // `runInstanceWithResult(..., 600, ...)`) and keeps the spinner up until
600
- // the instance completes. Waiting only 300s gives up while the product is
601
- // still within its own budget when the LLM provider is slow; wait out the
602
- // full product window (+ variable-fetch retries). The result assertions
603
- // that follow still fail if classification errors or times out.
604
- await (0, test_1.expect)(this.classifyingLoader).not.toBeVisible({ timeout: 660000 });
596
+ // Hub clears "Classifying..." only when the Pusher `process:complete` event
597
+ // for the started instance arrives (camunda-hub
598
+ // `listenForExtractionCompletion`, no client-side timeout). When that event
599
+ // is lost the spinner never clears even though the run itself was started.
600
+ // The in-progress flag is in-memory only, so a reload restores "Run Test";
601
+ // re-run the classification instead of waiting on a dead subscription.
602
+ // Allow the full product run window before recovering, and still fail if the
603
+ // classification cannot complete.
604
+ async classifyingProgressIsComplete(maxAttempts = 3) {
605
+ for (let attempt = 1; attempt <= maxAttempts; attempt++) {
606
+ try {
607
+ await (0, test_1.expect)(this.classifyingLoader).not.toBeVisible({
608
+ timeout: 660000,
609
+ });
610
+ return;
611
+ }
612
+ catch (error) {
613
+ if (attempt === maxAttempts) {
614
+ throw error;
615
+ }
616
+ console.warn(`Classification still running after attempt ${attempt}; reloading and re-running the test`);
617
+ await this.page.reload();
618
+ await this.clickTestTemplateTab();
619
+ await (0, test_1.expect)(this.classificationRunTestButton).toBeEnabled({
620
+ timeout: 120000,
621
+ });
622
+ await this.classificationRunTestButton.click();
623
+ }
624
+ }
605
625
  }
606
626
  async assertClassificationTemplateSuccessNotification() {
607
627
  await (0, test_1.expect)(this.classificationSuccessfullPublishNotification).toBeVisible({ timeout: 120000 });
@@ -59,13 +59,14 @@ _8_10_1.test.describe('Cluster Setup Tests', () => {
59
59
  await clusterDetailsPage.clickAPITab();
60
60
  const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
61
61
  await clusterDetailsPage.clickCloseModalButton();
62
- if (process.env.RUN_FULL_SUITE === 'true') {
63
- // Written to disk, not just process.env: the full-suite pass runs as
64
- // a separate `npm run test` process (see run-tests-smoke-int's
65
- // action.yml) that does not inherit this process's env mutations.
66
- // mode 0o600: this file holds a live Zeebe API client secret.
67
- fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
68
- }
62
+ // Written to disk, not just process.env: a process that did not run this
63
+ // setup cannot inherit its env mutations. Two consumers need that -- the
64
+ // full-suite pass, which runs as a separate `npm run test` (see
65
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
66
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
67
+ // fix against the org that failed.
68
+ // mode 0o600: this file holds a live Zeebe API client secret.
69
+ fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
69
70
  // Deliberately NOT extended to RUN_FULL_SUITE like the API client
70
71
  // above: clickConnectorSecretsTab hits the same pre-existing "click
71
72
  // after 3 attempts" UI-contention flakiness seen throughout this
@@ -130,13 +131,14 @@ _8_10_1.test.describe('Cluster Setup Tests', () => {
130
131
  await clusterPage.clickClusterLink(clusterName);
131
132
  await clusterDetailsPage.clickAPITab();
132
133
  const agenticCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
133
- if (process.env.RUN_FULL_SUITE === 'true') {
134
- // Written to disk, not just process.env: the full-suite pass runs as
135
- // a separate `npm run test` process (see run-tests-smoke-int's
136
- // action.yml) that does not inherit this process's env mutations.
137
- // mode 0o600: this file holds a live Zeebe API client secret.
138
- fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
139
- }
134
+ // Written to disk, not just process.env: a process that did not run this
135
+ // setup cannot inherit its env mutations. Two consumers need that -- the
136
+ // full-suite pass, which runs as a separate `npm run test` (see
137
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
138
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
139
+ // fix against the org that failed.
140
+ // mode 0o600: this file holds a live Zeebe API client secret.
141
+ fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
140
142
  await clusterDetailsPage.clickCloseModalButton();
141
143
  const mcpCredentials = await clusterDetailsPage.createMCPClientAndReturnVariables(mcpClientName);
142
144
  await clusterDetailsPage.clickCloseModalButton();
@@ -54,13 +54,14 @@ _8_11_1.test.describe('Cluster Setup Tests', () => {
54
54
  await clusterDetailsPage.clickAPITab();
55
55
  const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
56
56
  await clusterDetailsPage.clickCloseModalButton();
57
- if (process.env.RUN_FULL_SUITE === 'true') {
58
- // Written to disk, not just process.env: the full-suite pass runs as
59
- // a separate `npm run test` process (see run-tests-smoke-int's
60
- // action.yml) that does not inherit this process's env mutations.
61
- // mode 0o600: this file holds a live Zeebe API client secret.
62
- fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
63
- }
57
+ // Written to disk, not just process.env: a process that did not run this
58
+ // setup cannot inherit its env mutations. Two consumers need that -- the
59
+ // full-suite pass, which runs as a separate `npm run test` (see
60
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
61
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
62
+ // fix against the org that failed.
63
+ // mode 0o600: this file holds a live Zeebe API client secret.
64
+ fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
64
65
  // Deliberately NOT extended to RUN_FULL_SUITE like the API client
65
66
  // above: clickConnectorSecretsTab hits the same pre-existing "click
66
67
  // after 3 attempts" UI-contention flakiness seen throughout this
@@ -114,13 +115,14 @@ _8_11_1.test.describe('Cluster Setup Tests', () => {
114
115
  await clusterPage.clickClusterLink(clusterName);
115
116
  await clusterDetailsPage.clickAPITab();
116
117
  const agenticCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
117
- if (process.env.RUN_FULL_SUITE === 'true') {
118
- // Written to disk, not just process.env: the full-suite pass runs as
119
- // a separate `npm run test` process (see run-tests-smoke-int's
120
- // action.yml) that does not inherit this process's env mutations.
121
- // mode 0o600: this file holds a live Zeebe API client secret.
122
- fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
123
- }
118
+ // Written to disk, not just process.env: a process that did not run this
119
+ // setup cannot inherit its env mutations. Two consumers need that -- the
120
+ // full-suite pass, which runs as a separate `npm run test` (see
121
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
122
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
123
+ // fix against the org that failed.
124
+ // mode 0o600: this file holds a live Zeebe API client secret.
125
+ fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
124
126
  await clusterDetailsPage.clickCloseModalButton();
125
127
  const mcpCredentials = await clusterDetailsPage.createMCPClientAndReturnVariables(mcpClientName);
126
128
  await clusterDetailsPage.clickCloseModalButton();
@@ -65,13 +65,14 @@ _8_8_1.test.describe('Cluster Setup Tests', () => {
65
65
  await clusterDetailsPage.clickAPITab();
66
66
  const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
67
67
  await clusterDetailsPage.clickCloseModalButton();
68
- if (process.env.RUN_FULL_SUITE === 'true') {
69
- // Written to disk, not just process.env: the full-suite pass runs as
70
- // a separate `npm run test` process (see run-tests-smoke-int's
71
- // action.yml) that does not inherit this process's env mutations.
72
- // mode 0o600: this file holds a live Zeebe API client secret.
73
- fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
74
- }
68
+ // Written to disk, not just process.env: a process that did not run this
69
+ // setup cannot inherit its env mutations. Two consumers need that -- the
70
+ // full-suite pass, which runs as a separate `npm run test` (see
71
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
72
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
73
+ // fix against the org that failed.
74
+ // mode 0o600: this file holds a live Zeebe API client secret.
75
+ fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
75
76
  // Deliberately NOT extended to RUN_FULL_SUITE like the API client
76
77
  // above: connector-secrets creation is on test-setup's blocking
77
78
  // critical path, and its own transient flakiness would take down
@@ -51,13 +51,14 @@ _8_9_1.test.describe('Cluster Setup Tests', () => {
51
51
  await clusterDetailsPage.clickAPITab();
52
52
  const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
53
53
  await clusterDetailsPage.clickCloseModalButton();
54
- if (process.env.RUN_FULL_SUITE === 'true') {
55
- // Written to disk, not just process.env: the full-suite pass runs as
56
- // a separate `npm run test` process (see run-tests-smoke-int's
57
- // action.yml) that does not inherit this process's env mutations.
58
- // mode 0o600: this file holds a live Zeebe API client secret.
59
- fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
60
- }
54
+ // Written to disk, not just process.env: a process that did not run this
55
+ // setup cannot inherit its env mutations. Two consumers need that -- the
56
+ // full-suite pass, which runs as a separate `npm run test` (see
57
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
58
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
59
+ // fix against the org that failed.
60
+ // mode 0o600: this file holds a live Zeebe API client secret.
61
+ fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
61
62
  // Deliberately NOT extended to RUN_FULL_SUITE like the API client
62
63
  // above: connector-secrets creation is on test-setup's blocking
63
64
  // critical path, and its own transient flakiness would take down
@@ -92,7 +93,15 @@ _8_9_1.test.describe('Cluster Setup Tests', () => {
92
93
  await clusterPage.assertClusterHealthyStatusWithRetry(clusterName);
93
94
  await clusterPage.clickClusterLink(clusterName);
94
95
  await clusterDetailsPage.clickAPITab();
95
- await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
96
+ const agenticCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
97
+ // Written to disk, not just process.env: a process that did not run this
98
+ // setup cannot inherit its env mutations. Two consumers need that -- the
99
+ // full-suite pass, which runs as a separate `npm run test` (see
100
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
101
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
102
+ // fix against the org that failed.
103
+ // mode 0o600: this file holds a live Zeebe API client secret.
104
+ fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
96
105
  await clusterDetailsPage.clickCloseModalButton();
97
106
  const mcpCredentials = await clusterDetailsPage.createMCPClientAndReturnVariables(mcpClientName);
98
107
  await clusterDetailsPage.clickCloseModalButton();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1664",
3
+ "version": "0.0.1666",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",