From bba1d81d15f999907f3312f181cc8118208951b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:11:15 +0000 Subject: [PATCH 1/3] Initial plan From 0856f6b43cdcdb13693f81ebfc19556c7a4a2796 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:12:14 +0000 Subject: [PATCH 2/3] Add openidm-ui QUnit headless browser tests to build workflow Agent-Logs-Url: https://github.com/OpenIdentityPlatform/OpenIDM/sessions/6430abd9-caf0-4958-b4a6-49f9fead44c2 Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com> --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5255d2cf9..3e94ff6ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,6 +44,10 @@ jobs: grep -q "OpenIDM ready" openidm/logs/openidm0.log.0 ! grep "ERROR" openidm/logs/openidm0.log.0 ! grep "SEVERE" openidm/logs/openidm0.log.0 + echo "Running openidm-ui-admin QUnit tests in headless browser..." + cd openidm-ui/openidm-ui-admin && npx grunt qunit && cd ../.. + echo "Running openidm-ui-enduser QUnit tests in headless browser..." + cd openidm-ui/openidm-ui-enduser && npx grunt qunit && cd ../.. - name: Test on Windows if: runner.os == 'Windows' run: | @@ -55,6 +59,14 @@ jobs: findstr "OpenIDM ready" logs\openidm0.log.0 type logs\openidm0.log.0 | find /c '"ERROR"' | findstr "0" type logs\openidm0.log.0 | find /c '"SEVERE"' | findstr "0" + Write-Host "Running openidm-ui-admin QUnit tests in headless browser..." + Push-Location ..\openidm-ui\openidm-ui-admin + npx grunt qunit + Pop-Location + Write-Host "Running openidm-ui-enduser QUnit tests in headless browser..." + Push-Location ..\openidm-ui\openidm-ui-enduser + npx grunt qunit + Pop-Location - name: Upload failure artifacts uses: actions/upload-artifact@v7 if: ${{ failure() }} From f04e7d03492de368d3540ee91831cc6fc615c042 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:13:03 +0000 Subject: [PATCH 3/3] Fix fragile directory navigation: use subshells on Unix and try/finally on Windows Agent-Logs-Url: https://github.com/OpenIdentityPlatform/OpenIDM/sessions/6430abd9-caf0-4958-b4a6-49f9fead44c2 Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com> --- .github/workflows/build.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e94ff6ec..5e0c22d8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,9 +45,9 @@ jobs: ! grep "ERROR" openidm/logs/openidm0.log.0 ! grep "SEVERE" openidm/logs/openidm0.log.0 echo "Running openidm-ui-admin QUnit tests in headless browser..." - cd openidm-ui/openidm-ui-admin && npx grunt qunit && cd ../.. + (cd openidm-ui/openidm-ui-admin && npx grunt qunit) echo "Running openidm-ui-enduser QUnit tests in headless browser..." - cd openidm-ui/openidm-ui-enduser && npx grunt qunit && cd ../.. + (cd openidm-ui/openidm-ui-enduser && npx grunt qunit) - name: Test on Windows if: runner.os == 'Windows' run: | @@ -61,12 +61,10 @@ jobs: type logs\openidm0.log.0 | find /c '"SEVERE"' | findstr "0" Write-Host "Running openidm-ui-admin QUnit tests in headless browser..." Push-Location ..\openidm-ui\openidm-ui-admin - npx grunt qunit - Pop-Location + try { npx grunt qunit } finally { Pop-Location } Write-Host "Running openidm-ui-enduser QUnit tests in headless browser..." Push-Location ..\openidm-ui\openidm-ui-enduser - npx grunt qunit - Pop-Location + try { npx grunt qunit } finally { Pop-Location } - name: Upload failure artifacts uses: actions/upload-artifact@v7 if: ${{ failure() }}