feat: policy signature flow #850
playwright.yml
on: pull_request
Annotations
10 errors, 3 warnings, and 1 notice
|
Playwright E2E Tests (master)
Process completed with exit code 1.
|
|
[chromium] › playwright/e2e/signature-footer-template-editor.spec.ts:259:5 › footer template reset reverts to inherited default after save and reload:
apps/libresign/playwright/e2e/signature-footer-template-editor.spec.ts#L298
5) [chromium] › playwright/e2e/signature-footer-template-editor.spec.ts:259:5 › footer template reset reverts to inherited default after save and reload
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
296 | await saveRule(ruleDialog)
297 | const persistedAfterReset = await getPersistedSystemFooterPolicy(page)
> 298 | expect(persistedAfterReset.customizeFooterTemplate).toBe(false)
| ^
299 | expect(persistedAfterReset.footerTemplate).toBe('')
300 |
301 | await page.reload()
at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/signature-footer-template-editor.spec.ts:298:54
|
|
[chromium] › playwright/e2e/signature-footer-template-editor-fixed.spec.ts:27:5 › signature footer template editor updates preview and controls correctly:
apps/libresign/playwright/e2e/signature-footer-template-editor-fixed.spec.ts#L37
4) [chromium] › playwright/e2e/signature-footer-template-editor-fixed.spec.ts:27:5 › signature footer template editor updates preview and controls correctly
Error: expect(locator).toBeVisible() failed
Locator: locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer with signature details/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 with signature details/i }).first()
35 |
36 | const addFooterSwitch = page.locator('.checkbox-radio-switch').filter({ hasText: /Add visible footer with signature details/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 | let customizeVisible = await customizeSwitch.isVisible().catch(() => false)
at /home/runner/work/libresign/libresign/apps/libresign/playwright/e2e/signature-footer-template-editor-fixed.spec.ts:37: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 #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
5 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/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:259:5 › footer template reset reverts to inherited default after save and reload
1 did not run
32 passed (6.8m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-test-results
|
2.01 MB |
sha256:d80b62c1c02db9111fe9191165110d5916d66ac71b0cc64c6e7474a096f09e2f
|
|