Skip to content

Commit 8f477b7

Browse files
committed
w
1 parent 4b07362 commit 8f477b7

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

build/performance/Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pipeline {
44
}
55

66
tools {
7-
jdk 'temurin-jdk-21.0.6.7'
7+
jdk 'temurin-jdk-25.0.2.10'
88
maven '3.9'
99
}
1010

@@ -48,6 +48,7 @@ pipeline {
4848
bat 'start AxonIvyEngine/bin/AxonIvyEngine.exe'
4949
bat 'pnpm run test:playwright:download:vscode'
5050
bat 'git clone https://github.com/axonivy-market/portal.git playwright/tests/workspaces/portalPerformance/portal'
51+
bat 'git -C playwright/tests/workspaces/portalPerformance/portal checkout project-conversion-lmu'
5152
}
5253
}
5354
}
@@ -56,12 +57,11 @@ pipeline {
5657
steps {
5758
nodejs(nodeJSInstallationName: '24.11.0') {
5859
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') {
59-
bat 'pnpm run test:playwright'
60-
bat 'start AxonIvyEngine/bin/AxonIvyEngine.exe stop'
60+
bat 'pnpm run test:playwright:performance'
6161
}
62+
bat 'start AxonIvyEngine/bin/AxonIvyEngine.exe stop'
6263
archiveArtifacts artifacts: '**/playwright/test-results/**', allowEmptyArchive: true
63-
archiveArtifacts artifacts: '**/playwright/playwright-videos/**', allowEmptyArchive: true
64-
withChecks('WebTests') {
64+
withChecks('Performance Tests') {
6565
junit testDataPublishers: [[$class: 'StabilityTestDataPublisher']], testResults: '**/node_modules/**/report.xml'
6666
}
6767
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"test:playwright": "pnpm run --filter @axonivy/vscode-designer-playwright ui-tests",
3030
"test:playwright:browser": "RUN_IN_BROWSER=true pnpm run test:playwright",
3131
"test:playwright:download:vscode": "pnpm run --filter @axonivy/vscode-designer-playwright download:vscode",
32+
"test:playwright:performance": "pnpm run --filter @axonivy/vscode-designer-playwright ui-performance-tests",
3233
"type": "pnpm run -r type",
3334
"update:axonivy:next": "npx --yes npm-check-updates @axonivy* -ws -t semver -u",
3435
"raise:version": "lerna version --allow-peer-dependencies-update --no-git-tag-version --no-push --ignore-scripts --exact --yes",

playwright/tests/performance/portal-start.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { BrowserView } from '../page-objects/browser-view';
33
import { ProcessEditor } from '../page-objects/process-editor';
44
import { portalPerformanceWorkspacePath } from '../workspaces/workspace';
55

6-
test('Dummy test to ensure vscode setup (java version set)', async ({ page }) => {
6+
test('Dummy test to ensure that java version is validated', async ({ page }) => {
77
await new ProcessEditor(page).hasDeployProjectStatusMessage();
88
});
99

@@ -14,6 +14,7 @@ test.describe('Portal performance', () => {
1414
await expect(page.locator('#status\\.problems')).not.toHaveAttribute('aria-label', 'No Problems');
1515
await expect(page.locator('div.statusbar-item:has-text("Java: Ready")')).toBeVisible();
1616
const processEditor = new ProcessEditor(page, 'PortalStart.p.json');
17+
await processEditor.hasStatusMessage('Finished: Invalidate class loader');
1718
await processEditor.openEditorFile();
1819
const start = processEditor.locatorForPID('1549F58C18A6C562-f28');
1920
await processEditor.startProcessAndAssertExecuted(start, start);

0 commit comments

Comments
 (0)