Skip to content

fix: urlencode file source based on resource url #102

fix: urlencode file source based on resource url

fix: urlencode file source based on resource url #102

Re-run triggered August 10, 2026 08:00
Status Failure
Total duration 9m 20s
Artifacts 3

playwright.yml

on: pull_request
Playwright E2E tests
9m 7s
Playwright E2E tests
playwright-summary
7s
playwright-summary
Fit to window
Zoom out
Zoom in

Annotations

6 errors, 1 warning, and 1 notice
Playwright E2E tests
Process completed with exit code 1.
[chromium] β€Ί playwright/e2e/sharing/single-file-share.spec.ts:28:2 β€Ί See shared single file with link share β€Ί Opens the shared image in the viewer: playwright/support/viewerUtils.ts#L75
6) [chromium] β€Ί playwright/e2e/sharing/single-file-share.spec.ts:28:2 β€Ί See shared single file with link share β€Ί Opens the shared image in the viewer Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveAttribute(expected) failed Locator: locator('body > .viewer').locator('.modal-container .viewer__file.viewer__file--active img') Expected pattern: /\/apps\/files_sharing\/publicpreview\// Received string: "http://localhost:8081/public.php/dav/files/CCiNftMmtTbLTDF/" Timeout: 15000ms Call log: - Expect "toHaveAttribute" with timeout 15000ms - waiting for locator('body > .viewer').locator('.modal-container .viewer__file.viewer__file--active img') 34 Γ— locator resolved to <img alt="" class="loaded" data-v-38b7dcaa="" src="http://localhost:8081/public.php/dav/files/CCiNftMmtTbLTDF/"/> - unexpected value "http://localhost:8081/public.php/dav/files/CCiNftMmtTbLTDF/" at support/viewerUtils.ts:75 73 | urlFragment: string, 74 | ): Promise<void> { > 75 | await expect(getActiveMedia(page, type)).toHaveAttribute('src', new RegExp(escapeRegExp(urlFragment))) | ^ 76 | } 77 | 78 | /** Open the viewer header actions menu. */ at expectActiveSource (/home/runner/work/viewer/viewer/playwright/support/viewerUtils.ts:75:43) at /home/runner/work/viewer/viewer/playwright/e2e/sharing/single-file-share.spec.ts:37:9
[chromium] β€Ί playwright/e2e/sharing/single-file-share.spec.ts:28:2 β€Ί See shared single file with link share β€Ί Opens the shared image in the viewer: playwright/support/viewerUtils.ts#L75
6) [chromium] β€Ί playwright/e2e/sharing/single-file-share.spec.ts:28:2 β€Ί See shared single file with link share β€Ί Opens the shared image in the viewer Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveAttribute(expected) failed Locator: locator('body > .viewer').locator('.modal-container .viewer__file.viewer__file--active img') Expected pattern: /\/apps\/files_sharing\/publicpreview\// Received string: "http://localhost:8081/public.php/dav/files/4yJYaZoBPxrminx/" Timeout: 15000ms Call log: - Expect "toHaveAttribute" with timeout 15000ms - waiting for locator('body > .viewer').locator('.modal-container .viewer__file.viewer__file--active img') 34 Γ— locator resolved to <img alt="" class="loaded" data-v-38b7dcaa="" src="http://localhost:8081/public.php/dav/files/4yJYaZoBPxrminx/"/> - unexpected value "http://localhost:8081/public.php/dav/files/4yJYaZoBPxrminx/" at support/viewerUtils.ts:75 73 | urlFragment: string, 74 | ): Promise<void> { > 75 | await expect(getActiveMedia(page, type)).toHaveAttribute('src', new RegExp(escapeRegExp(urlFragment))) | ^ 76 | } 77 | 78 | /** Open the viewer header actions menu. */ at expectActiveSource (/home/runner/work/viewer/viewer/playwright/support/viewerUtils.ts:75:43) at /home/runner/work/viewer/viewer/playwright/e2e/sharing/single-file-share.spec.ts:37:9
[chromium] β€Ί playwright/mixins/image.ts:70:3 β€Ί Open image.png in viewer β€Ί The image source is the preview url: playwright/mixins/image.ts#L71
3) [chromium] β€Ί playwright/mixins/image.ts:70:3 β€Ί Open image.png in viewer β€Ί The image source is the preview url Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveAttribute(expected) failed Locator: locator('body > .viewer').locator('.modal-container .viewer__file.viewer__file--active img') Expected pattern: /\/index\.php\/core\/preview/ Received string: "http://localhost:8081/remote.php/dav/files/br0p/image.png" Timeout: 15000ms Call log: - Expect "toHaveAttribute" with timeout 15000ms - waiting for locator('body > .viewer').locator('.modal-container .viewer__file.viewer__file--active img') 34 Γ— locator resolved to <img class="loaded" alt="image.png" data-v-38b7dcaa="" src="http://localhost:8081/remote.php/dav/files/br0p/image.png"/> - unexpected value "http://localhost:8081/remote.php/dav/files/br0p/image.png" 69 | 70 | test(`The image source is the ${source ? 'remote' : 'preview'} url`, async () => { > 71 | await expect(getActiveMedia(page, 'img')).toHaveAttribute('src', new RegExp(escapeRegExp(source ?? '/index.php/core/preview'))) | ^ 72 | }) 73 | }) 74 | } at /home/runner/work/viewer/viewer/playwright/mixins/image.ts:71:46
[chromium] β€Ί playwright/mixins/image.ts:70:3 β€Ί Open image.png in viewer β€Ί The image source is the preview url: playwright/mixins/image.ts#L71
3) [chromium] β€Ί playwright/mixins/image.ts:70:3 β€Ί Open image.png in viewer β€Ί The image source is the preview url Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveAttribute(expected) failed Locator: locator('body > .viewer').locator('.modal-container .viewer__file.viewer__file--active img') Expected pattern: /\/index\.php\/core\/preview/ Received string: "http://localhost:8081/remote.php/dav/files/m1kb4/image.png" Timeout: 15000ms Call log: - Expect "toHaveAttribute" with timeout 15000ms - waiting for locator('body > .viewer').locator('.modal-container .viewer__file.viewer__file--active img') 34 Γ— locator resolved to <img class="loaded" alt="image.png" data-v-38b7dcaa="" src="http://localhost:8081/remote.php/dav/files/m1kb4/image.png"/> - unexpected value "http://localhost:8081/remote.php/dav/files/m1kb4/image.png" 69 | 70 | test(`The image source is the ${source ? 'remote' : 'preview'} url`, async () => { > 71 | await expect(getActiveMedia(page, 'img')).toHaveAttribute('src', new RegExp(escapeRegExp(source ?? '/index.php/core/preview'))) | ^ 72 | }) 73 | }) 74 | } at /home/runner/work/viewer/viewer/playwright/mixins/image.ts:71:46
playwright-summary
Process completed with exit code 1.
Playwright E2E tests
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
🎭 Playwright Run Summary
2 failed [chromium] β€Ί playwright/mixins/image.ts:70:3 β€Ί Open image.png in viewer β€Ί The image source is the preview url [chromium] β€Ί playwright/e2e/sharing/single-file-share.spec.ts:28:2 β€Ί See shared single file with link share β€Ί Opens the shared image in the viewer 4 flaky [chromium] β€Ί playwright/mixins/image.ts:70:3 β€Ί Open image.webp in viewer β€Ί The image source is the preview url [chromium] β€Ί playwright/e2e/images/images-custom-list-loadmore.spec.ts:106:2 β€Ί Open custom list of images in viewer with pagination β€Ί The image source is the preview url (image2) [chromium] β€Ί playwright/e2e/images/images-custom-list.spec.ts:90:2 β€Ί Open custom images list in viewer β€Ί The image source is the preview url (image1) [chromium] β€Ί playwright/mixins/oddname.ts:85:3 β€Ί Open image1.jpg in viewer with a naughty name β€Ί See image1.jpg as its naughty name in the list 18 skipped 304 passed (7.6m)

Artifacts

Produced during runtime
Name Size Digest
playwright-traces Expired
169 MB
sha256:f44f43ea0da6f6daa843563faba7dbf9a0a54a960d9192c305ed492bc6a96829