@camunda/e2e-test-suite 0.0.834 → 0.0.836
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.
|
@@ -83,9 +83,12 @@ _8_8_1.test.describe('Cluster Setup Tests', () => {
|
|
|
83
83
|
await homePage.clickSkipCustomization();
|
|
84
84
|
await modelerHomePage.createCrossComponentProjectFolder();
|
|
85
85
|
await modelerHomePage.clickHomeBreadcrumb();
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
// The project-rename PATCH commits on the backend, but navigating to
|
|
87
|
+
// Home right after can render the SPA's stale (pre-rename) project
|
|
88
|
+
// list without refetching, so the folder never appears under a plain
|
|
89
|
+
// toBeVisible. Reload between retries so the freshly renamed folder is
|
|
90
|
+
// fetched from the server and asserted visible.
|
|
91
|
+
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, modelerHomePage.crossComponentProjectFolder, 'cross component project folder', 30000, false, 5);
|
|
89
92
|
});
|
|
90
93
|
});
|
|
91
94
|
}
|
|
@@ -84,19 +84,34 @@ async function deleteClusterViaApi(page, clusterName) {
|
|
|
84
84
|
}
|
|
85
85
|
exports.deleteClusterViaApi = deleteClusterViaApi;
|
|
86
86
|
async function resolveGenerationId() {
|
|
87
|
-
|
|
87
|
+
// MINOR_VERSION is always a plain "8.x" string in every trigger flow
|
|
88
|
+
// (run-tests-saas extracts it from the human-readable version input;
|
|
89
|
+
// run-tests-smoke-int sets it straight from c8Version). CLUSTER_VERSION is
|
|
90
|
+
// NOT reliable for this lookup: the camunda/camunda-triggered PR dispatch
|
|
91
|
+
// flow (playwright_saas_pr_trigger_monorepo.yml -> run-tests-smoke-int)
|
|
92
|
+
// deliberately puts a random per-PR cluster *generation name* there
|
|
93
|
+
// (openssl rand -hex 6), a pre-existing convention unrelated to this
|
|
94
|
+
// GENERATION_MAP lookup. Fall back to it only for callers that don't set
|
|
95
|
+
// MINOR_VERSION.
|
|
96
|
+
const rawVersion = process.env.MINOR_VERSION || process.env.CLUSTER_VERSION || '';
|
|
88
97
|
const minorVersion = rawVersion.match(/^(\d+\.\d+)/)?.[1] ?? rawVersion;
|
|
89
98
|
const generationId = GENERATION_MAP[minorVersion];
|
|
90
99
|
if (generationId)
|
|
91
100
|
return generationId;
|
|
92
|
-
throw new Error(`No generation UUID found for CLUSTER_VERSION="${rawVersion}" ` +
|
|
101
|
+
throw new Error(`No generation UUID found for MINOR_VERSION/CLUSTER_VERSION="${rawVersion}" ` +
|
|
93
102
|
`(resolved minor: "${minorVersion}"). ` +
|
|
94
103
|
`Known versions: ${Object.keys(GENERATION_MAP).join(', ')}`);
|
|
95
104
|
}
|
|
96
105
|
async function createClusterViaApi(page, clusterName, region = 'GCP') {
|
|
97
106
|
const token = await getUserToken(page);
|
|
98
107
|
const orgId = getOrgId();
|
|
99
|
-
|
|
108
|
+
// Some trigger flows (e.g. playwright_saas_pr_trigger_monorepo.yml) create a
|
|
109
|
+
// throwaway cluster generation per run, built from that specific commit's
|
|
110
|
+
// component images, and pass its real UUID through as CLUSTER_GENERATION_ID.
|
|
111
|
+
// That must win over the static GENERATION_MAP lookup -- falling back to a
|
|
112
|
+
// fixed generation would silently test the wrong (stale) images instead of
|
|
113
|
+
// failing loudly.
|
|
114
|
+
const generationId = process.env.CLUSTER_GENERATION_ID || (await resolveGenerationId());
|
|
100
115
|
const k8sContextId = region.toUpperCase() === 'AWS' ? AWS_REGION_ID : GCP_REGION_ID;
|
|
101
116
|
const createResponse = await page.request.post(`${getConsoleBaseUrl()}/api/orgs/${orgId}/clusters`, {
|
|
102
117
|
headers: { Authorization: `Bearer ${token}` },
|