test(e2e): trigger sync + handle lazy-load to assert Cloudinary delivery #247
ci.yml
on: push
E2E (Playwright)
5m 32s
Matrix: build
Annotations
4 errors, 3 warnings, and 1 notice
|
E2E (Playwright)
Process completed with exit code 1.
|
|
[chromium] › tests/e2e/cloudinary-image-delivery.spec.js:127:2 › Cloudinary image delivery › serves featured image and inline image via Cloudinary:
tests/e2e/cloudinary-image-delivery.spec.js#L160
1) [chromium] › tests/e2e/cloudinary-image-delivery.spec.js:127:2 › Cloudinary image delivery › serves featured image and inline image via Cloudinary
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveAttribute(expected) failed
Locator: locator('img.wp-post-image').first()
Expected pattern: /^https?:\/\//
Received string: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMjAiIGhlaWdodD0iMjQwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIj48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiB2YWx1ZXM9InJnYmEoMTUzLDE1MywxNTMsMC41KTtyZ2JhKDE1MywxNTMsMTUzLDAuMSk7cmdiYSgxNTMsMTUzLDE1MywwLjUpIiBkdXI9IjJzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48L3JlY3Q+PC9zdmc+"
Timeout: 10000ms
Call log:
- Expect "toHaveAttribute" with timeout 10000ms
- waiting for locator('img.wp-post-image').first()
14 × locator resolved to <img alt="" width="320" height="240" data-seo="1" decoding="async" data-format="jpg" data-size="320 240" fetchpriority="high" data-delivery="upload" data-cloudinary="lazy" data-version="1780477465" data-transformations="f_auto,q_auto" data-sizes="(max-width: 320px) 100vw, 320px" onload=";window.CLDBind?CLDBind(this):null;" data-public-id="test-image_1053e1e/test-image_1053e1e.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image wp-image-10 wp-post-11" srcset="https://res.cloudina…/>
- unexpected value "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMjAiIGhlaWdodD0iMjQwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIj48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiB2YWx1ZXM9InJnYmEoMTUzLDE1MywxNTMsMC41KTtyZ2JhKDE1MywxNTMsMTUzLDAuMSk7cmdiYSgxNTMsMTUzLDE1MywwLjUpIiBkdXI9IjJzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48L3JlY3Q+PC9zdmc+"
158 | for ( const loc of [ featured, inline ] ) {
159 | await loc.scrollIntoViewIfNeeded();
> 160 | await expect( loc ).toHaveAttribute( 'src', /^https?:\/\// );
| ^
161 | }
162 |
163 | const candidates = [];
at /home/runner/work/cloudinary_wordpress/cloudinary_wordpress/tests/e2e/cloudinary-image-delivery.spec.js:160:24
|
|
[chromium] › tests/e2e/cloudinary-image-delivery.spec.js:127:2 › Cloudinary image delivery › serves featured image and inline image via Cloudinary:
tests/e2e/cloudinary-image-delivery.spec.js#L160
1) [chromium] › tests/e2e/cloudinary-image-delivery.spec.js:127:2 › Cloudinary image delivery › serves featured image and inline image via Cloudinary
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveAttribute(expected) failed
Locator: locator('img.wp-post-image').first()
Expected pattern: /^https?:\/\//
Received string: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMjAiIGhlaWdodD0iMjQwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIj48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiB2YWx1ZXM9InJnYmEoMTUzLDE1MywxNTMsMC41KTtyZ2JhKDE1MywxNTMsMTUzLDAuMSk7cmdiYSgxNTMsMTUzLDE1MywwLjUpIiBkdXI9IjJzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48L3JlY3Q+PC9zdmc+"
Timeout: 10000ms
Call log:
- Expect "toHaveAttribute" with timeout 10000ms
- waiting for locator('img.wp-post-image').first()
14 × locator resolved to <img alt="" width="320" height="240" data-seo="1" decoding="async" data-format="jpg" data-size="320 240" fetchpriority="high" data-delivery="upload" data-cloudinary="lazy" data-version="1780477443" data-transformations="f_auto,q_auto" data-sizes="(max-width: 320px) 100vw, 320px" onload=";window.CLDBind?CLDBind(this):null;" data-public-id="test-image_8653c0/test-image_8653c0.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image wp-image-8 wp-post-9" srcset="https://res.cloudinary.c…/>
- unexpected value "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMjAiIGhlaWdodD0iMjQwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIj48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiB2YWx1ZXM9InJnYmEoMTUzLDE1MywxNTMsMC41KTtyZ2JhKDE1MywxNTMsMTUzLDAuMSk7cmdiYSgxNTMsMTUzLDE1MywwLjUpIiBkdXI9IjJzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48L3JlY3Q+PC9zdmc+"
158 | for ( const loc of [ featured, inline ] ) {
159 | await loc.scrollIntoViewIfNeeded();
> 160 | await expect( loc ).toHaveAttribute( 'src', /^https?:\/\// );
| ^
161 | }
162 |
163 | const candidates = [];
at /home/runner/work/cloudinary_wordpress/cloudinary_wordpress/tests/e2e/cloudinary-image-delivery.spec.js:160:24
|
|
[chromium] › tests/e2e/cloudinary-image-delivery.spec.js:127:2 › Cloudinary image delivery › serves featured image and inline image via Cloudinary:
tests/e2e/cloudinary-image-delivery.spec.js#L160
1) [chromium] › tests/e2e/cloudinary-image-delivery.spec.js:127:2 › Cloudinary image delivery › serves featured image and inline image via Cloudinary
Error: expect(locator).toHaveAttribute(expected) failed
Locator: locator('img.wp-post-image').first()
Expected pattern: /^https?:\/\//
Received string: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMjAiIGhlaWdodD0iMjQwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIj48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiB2YWx1ZXM9InJnYmEoMTUzLDE1MywxNTMsMC41KTtyZ2JhKDE1MywxNTMsMTUzLDAuMSk7cmdiYSgxNTMsMTUzLDE1MywwLjUpIiBkdXI9IjJzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48L3JlY3Q+PC9zdmc+"
Timeout: 10000ms
Call log:
- Expect "toHaveAttribute" with timeout 10000ms
- waiting for locator('img.wp-post-image').first()
14 × locator resolved to <img alt="" width="320" height="240" data-seo="1" decoding="async" data-format="jpg" data-size="320 240" fetchpriority="high" data-delivery="upload" data-cloudinary="lazy" data-version="1780477421" data-transformations="f_auto,q_auto" data-sizes="(max-width: 320px) 100vw, 320px" onload=";window.CLDBind?CLDBind(this):null;" data-public-id="test-image_555766/test-image_555766.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image wp-image-5 wp-post-6" srcset="https://res.cloudinary.c…/>
- unexpected value "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMjAiIGhlaWdodD0iMjQwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIj48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiB2YWx1ZXM9InJnYmEoMTUzLDE1MywxNTMsMC41KTtyZ2JhKDE1MywxNTMsMTUzLDAuMSk7cmdiYSgxNTMsMTUzLDE1MywwLjUpIiBkdXI9IjJzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48L3JlY3Q+PC9zdmc+"
158 | for ( const loc of [ featured, inline ] ) {
159 | await loc.scrollIntoViewIfNeeded();
> 160 | await expect( loc ).toHaveAttribute( 'src', /^https?:\/\// );
| ^
161 | }
162 |
163 | const candidates = [];
at /home/runner/work/cloudinary_wordpress/cloudinary_wordpress/tests/e2e/cloudinary-image-delivery.spec.js:160:24
|
|
build (7.4)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 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/
|
|
build (8.3)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 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/
|
|
E2E (Playwright)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, actions/upload-artifact@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 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 Run Summary
1 failed
[chromium] › tests/e2e/cloudinary-image-delivery.spec.js:127:2 › Cloudinary image delivery › serves featured image and inline image via Cloudinary
7 passed (1.5m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-artifacts
Expired
|
1.53 MB |
sha256:cee7c13d783b66071ade6c8f76bbf5d0d29cc61381fc17d7b412ef3e555c79a3
|
|