Skip to content

feat: policy signature flow #867

feat: policy signature flow

feat: policy signature flow #867

Triggered via pull request May 3, 2026 20:00
Status Failure
Total duration 10m 52s
Artifacts 1

playwright.yml

on: pull_request
Matrix: Playwright E2E Tests
playwright-summary
4s
playwright-summary
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 3 warnings, and 1 notice
[chromium] › playwright/e2e/policy-workbench-boolean-settings.spec.ts:32:5 › boolean settings stay consistent between effective policy and admin initial state: apps/libresign/playwright/e2e/policy-workbench-boolean-settings.spec.ts#L47
5) [chromium] › playwright/e2e/policy-workbench-boolean-settings.spec.ts:32:5 › boolean settings stay consistent between effective policy and admin initial state Error: expect(received).toBe(expected) // Object.is equality Expected: false Received: null 45 | expect(effectiveDisabled).not.toBeNull() 46 | expect(effectiveDisabled?.effectiveValue).toBe(false) > 47 | expect(await getAdminInitialStateValue(page, setting.policyKey)).toBe(false) | ^ 48 | 49 | await setSystemPolicyEntry(adminContext, setting.policyKey, JSON.stringify(true), true) 50 | await page.reload() at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/policy-workbench-boolean-settings.spec.ts:47:69
[chromium] › playwright/e2e/multi-signer-sequential.spec.ts:89:1 › request signatures from two signers in sequential order: apps/libresign/playwright/support/policy-api.ts#L156
4) [chromium] › playwright/e2e/multi-signer-sequential.spec.ts:89:1 › request signatures from two signers in sequential order Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: setSystemPolicyEntry(add_footer): expected 200 but got 500 expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 at ../support/policy-api.ts:156 154 | { value, allowChildOverride }, 155 | ) > 156 | expect(response.httpStatus, `setSystemPolicyEntry(${policyKey}): expected 200 but got ${response.httpStatus}`).toBe(200) | ^ 157 | } 158 | 159 | /** at setSystemPolicyEntry (/home/runner/work/libresign/libresign/apps/libresign/playwright/support/policy-api.ts:156:113) at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/multi-signer-sequential.spec.ts:68:2
[chromium] › playwright/e2e/multi-signer-sequential.spec.ts:89:1 › request signatures from two signers in sequential order: apps/libresign/playwright/support/policy-api.ts#L156
4) [chromium] › playwright/e2e/multi-signer-sequential.spec.ts:89:1 › request signatures from two signers in sequential order Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: setSystemPolicyEntry(add_footer): expected 200 but got 500 expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 at ../support/policy-api.ts:156 154 | { value, allowChildOverride }, 155 | ) > 156 | expect(response.httpStatus, `setSystemPolicyEntry(${policyKey}): expected 200 but got ${response.httpStatus}`).toBe(200) | ^ 157 | } 158 | 159 | /** at setSystemPolicyEntry (/home/runner/work/libresign/libresign/apps/libresign/playwright/support/policy-api.ts:156:113) at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/multi-signer-sequential.spec.ts:68:2
[chromium] › playwright/e2e/multi-signer-sequential.spec.ts:89:1 › request signatures from two signers in sequential order: apps/libresign/playwright/support/policy-api.ts#L156
4) [chromium] › playwright/e2e/multi-signer-sequential.spec.ts:89:1 › request signatures from two signers in sequential order Error: setSystemPolicyEntry(add_footer): expected 200 but got 500 expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 at ../support/policy-api.ts:156 154 | { value, allowChildOverride }, 155 | ) > 156 | expect(response.httpStatus, `setSystemPolicyEntry(${policyKey}): expected 200 but got ${response.httpStatus}`).toBe(200) | ^ 157 | } 158 | 159 | /** at setSystemPolicyEntry (/home/runner/work/libresign/libresign/apps/libresign/playwright/support/policy-api.ts:156:113) at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/multi-signer-sequential.spec.ts:68:2
[chromium] › playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts:13:5 › PDF viewer allows horizontal scrolling on mobile viewport: apps/libresign/playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts#L23
3) [chromium] › playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts:13:5 › PDF viewer allows horizontal scrolling on mobile viewport Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toBeVisible() failed Locator: locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() Expected: visible Timeout: 20000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 20000ms - waiting for locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() 21 | 22 | const addFooterSwitch = page.locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() > 23 | await expect(addFooterSwitch).toBeVisible({ timeout: 20000 }) | ^ 24 | const addFooterCheckbox = addFooterSwitch.locator('input[type="checkbox"]').first() 25 | if (!await addFooterCheckbox.isChecked()) { 26 | await addFooterSwitch.click() at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts:23:32
[chromium] › playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts:13:5 › PDF viewer allows horizontal scrolling on mobile viewport: apps/libresign/playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts#L23
3) [chromium] › playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts:13:5 › PDF viewer allows horizontal scrolling on mobile viewport Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toBeVisible() failed Locator: locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() Expected: visible Timeout: 20000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 20000ms - waiting for locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() 21 | 22 | const addFooterSwitch = page.locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() > 23 | await expect(addFooterSwitch).toBeVisible({ timeout: 20000 }) | ^ 24 | const addFooterCheckbox = addFooterSwitch.locator('input[type="checkbox"]').first() 25 | if (!await addFooterCheckbox.isChecked()) { 26 | await addFooterSwitch.click() at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts:23:32
[chromium] › playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts:13:5 › PDF viewer allows horizontal scrolling on mobile viewport: apps/libresign/playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts#L23
3) [chromium] › playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts:13:5 › PDF viewer allows horizontal scrolling on mobile viewport Error: expect(locator).toBeVisible() failed Locator: locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() Expected: visible Timeout: 20000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 20000ms - waiting for locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() 21 | 22 | const addFooterSwitch = page.locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() > 23 | await expect(addFooterSwitch).toBeVisible({ timeout: 20000 }) | ^ 24 | const addFooterCheckbox = addFooterSwitch.locator('input[type="checkbox"]').first() 25 | if (!await addFooterCheckbox.isChecked()) { 26 | await addFooterSwitch.click() at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts:23:32
[chromium] › playwright/e2e/footer-reset-persistence.spec.ts:27:5 › footer template persists after reset and page reload: apps/libresign/playwright/e2e/footer-reset-persistence.spec.ts#L37
2) [chromium] › playwright/e2e/footer-reset-persistence.spec.ts:27:5 › footer template persists after reset and page reload Error: expect(locator).toBeVisible() failed Locator: locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() Expected: visible Timeout: 20000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 20000ms - waiting for locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() 35 | 36 | const addFooterSwitch = page.locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer/i }).first() > 37 | await expect(addFooterSwitch).toBeVisible({ timeout: 20000 }) | ^ 38 | 39 | const customizeSwitch = page.locator('.checkbox-radio-switch').filter({ hasText: /Customize footer template/i }).first() 40 | at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/footer-reset-persistence.spec.ts:37:32
[chromium] › playwright/e2e/footer-policy-hierarchy-ui.spec.ts:235:1 › footer hierarchy works through policies and preferences UI: apps/libresign/playwright/e2e/footer-policy-hierarchy-ui.spec.ts#L114
1) [chromium] › playwright/e2e/footer-policy-hierarchy-ui.spec.ts:235:1 › footer hierarchy works through policies and preferences UI Error: page.waitForRequest: Test ended. 112 | 113 | async function waitForPolicyRequest(page: Page, method: 'PUT' | 'DELETE', urlPart: string, action: () => Promise<void>) { > 114 | const requestPromise = page.waitForRequest((request) => { | ^ 115 | return request.method() === method 116 | && request.url().includes(urlPart) 117 | }) at waitForPolicyRequest (/home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/footer-policy-hierarchy-ui.spec.ts:114:30) at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/footer-policy-hierarchy-ui.spec.ts:283:8
[chromium] › playwright/e2e/footer-policy-hierarchy-ui.spec.ts:235:1 › footer hierarchy works through policies and preferences UI: apps/libresign/playwright/e2e/footer-policy-hierarchy-ui.spec.ts#L284
1) [chromium] › playwright/e2e/footer-policy-hierarchy-ui.spec.ts:235:1 › footer hierarchy works through policies and preferences UI Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Reset to default' }) resolved to 2 elements: 1) <button type="button" data-v-09093702="" data-v-25aa07ae="" class="button-vue button-vue--size-normal button-vue--tertiary">…</button> aka locator('button').filter({ hasText: 'Reset to default' }) 2) <button type="button" data-v-09093702="" data-v-c48494aa="" aria-label="Reset to default" class="button-vue button-vue--size-normal button-vue--tertiary">…</button> aka getByLabel('Reset to default') Call log: - waiting for getByRole('button', { name: 'Reset to default' }) 282 | 283 | await waitForPolicyRequest(page, 'DELETE', `/apps/libresign/api/v1/policies/user/${FOOTER_POLICY_KEY}`, async () => { > 284 | await page.getByRole('button', { name: 'Reset to default' }).click() | ^ 285 | }) 286 | await expectFooterTemplateValue(page, groupTemplate) 287 | at action (/home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/footer-policy-hierarchy-ui.spec.ts:284:64) at waitForPolicyRequest (/home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/footer-policy-hierarchy-ui.spec.ts:119:8) at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/footer-policy-hierarchy-ui.spec.ts:283:8
playwright-summary
Process completed with exit code 1.
matrix
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Playwright E2E Tests (master)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba, skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Playwright E2E Tests (master)
No files were found with the provided path: apps/libresign/playwright-report/. No artifacts will be uploaded.
🎭 Playwright Run Summary
7 failed [chromium] › playwright/e2e/footer-policy-hierarchy-ui.spec.ts:235:1 › footer hierarchy works through policies and preferences UI [chromium] › playwright/e2e/footer-reset-persistence.spec.ts:27:5 › footer template persists after reset and page reload [chromium] › playwright/e2e/mobile-pdf-horizontal-scroll.spec.ts:13:5 › PDF viewer allows horizontal scrolling on mobile viewport [chromium] › playwright/e2e/multi-signer-sequential.spec.ts:89:1 › request signatures from two signers in sequential order [chromium] › playwright/e2e/policy-workbench-boolean-settings.spec.ts:32:5 › boolean settings stay consistent between effective policy and admin initial state [chromium] › playwright/e2e/signature-footer-template-editor-fixed.spec.ts:27:5 › signature footer template editor updates preview and controls correctly [chromium] › playwright/e2e/signature-footer-template-editor.spec.ts:217:5 › footer template persists customization after save and reload 2 did not run 29 passed (7.0m)

Artifacts

Produced during runtime
Name Size Digest
playwright-test-results
9.97 MB
sha256:dd2f516f6cb36a6ba3b7f54378a7f24a2e66432d85cd17f5e1133758475ba62c