From 014369bb3694ed40aae7e673565908486133482f Mon Sep 17 00:00:00 2001 From: leonardomendix Date: Thu, 3 Jul 2025 16:53:23 +0200 Subject: [PATCH] test: change the atlas theme to get the previous tag version --- .../run-e2e/lib/update-test-project.mjs | 19 ++++++++++++++----- automation/run-e2e/mendix-versions.json | 2 +- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/automation/run-e2e/lib/update-test-project.mjs b/automation/run-e2e/lib/update-test-project.mjs index dc79644341..35d702da85 100644 --- a/automation/run-e2e/lib/update-test-project.mjs +++ b/automation/run-e2e/lib/update-test-project.mjs @@ -64,6 +64,11 @@ async function updateAtlasThemeSource() { } cp("-r", themeSourcePath, config.testProjectDir); + + // Fix file permissions to ensure Docker can write to theme files + // The Atlas theme files are copied with read-only permissions + // but mxbuild needs to write to some generated files during build + sh.exec(`chmod -R +w "${config.testProjectDir}/themesource"`, { silent: true }); } async function updateAtlasTheme() { @@ -71,12 +76,16 @@ async function updateAtlasTheme() { rm("-rf", "tests/testProject/theme"); - const release = await getLatestReleaseByName("Atlas UI - Theme Folder Files", config.atlasCoreReleaseUrl); - - if (!release) { - throw new Error("Can't fetch latest Atlas UI theme release"); + // Fetch the specific release by tag from GitHub API + const tag = "atlasui-theme-files-2024-01-25"; + const releaseResponse = await fetchGithubRestAPI(`${config.atlasCoreReleaseUrl}/tags/${tag}`); + if (!releaseResponse.ok) { + throw new Error(`Can't fetch release for tag: ${tag}`); + } + const release = await releaseResponse.json(); + if (!release.assets || release.assets.length === 0) { + throw new Error(`No assets found for release tag: ${tag}`); } - const [{ browser_download_url }] = release.assets; const downloadedPath = join(await usetmp(), config.nameForDownloadedAtlasTheme); const outPath = await usetmp(); diff --git a/automation/run-e2e/mendix-versions.json b/automation/run-e2e/mendix-versions.json index 23b387d1f1..276179a36d 100644 --- a/automation/run-e2e/mendix-versions.json +++ b/automation/run-e2e/mendix-versions.json @@ -1,5 +1,5 @@ { - "latest": "10.21.1.64969", + "latest": "10.24.0.73019", "9": "9.24.0.2965", "8": "8.18.24.2858" }