@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.
- package/dist/pages/8.9/IdpCreatePage.d.ts +1 -1
- package/dist/pages/8.9/IdpCreatePage.js +29 -9
- package/dist/tests/8.10/test-setup.spec.js +16 -14
- package/dist/tests/8.11/test-setup.spec.js +16 -14
- package/dist/tests/8.8/test-setup.spec.js +8 -7
- package/dist/tests/8.9/test-setup.spec.js +17 -8
- package/package.json +1 -1
|
@@ -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
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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();
|