Skip to content

Migrate remaining Link UI tests to Playwright #79017

Migrate remaining Link UI tests to Playwright

Migrate remaining Link UI tests to Playwright #79017

Triggered via pull request July 21, 2023 10:43
Status Success
Total duration 41m 38s
Artifacts 2

end2end-test.yml

on: pull_request
Matrix: e2e-playwright
Matrix: e2e-puppeteer
Report to GitHub
3m 9s
Report to GitHub
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 4 notices
[chromium] › editor/blocks/image.spec.js:341:2 › Image › allows rotating using the crop tools: test/e2e/specs/editor/blocks/image.spec.js#L375
1) [chromium] › editor/blocks/image.spec.js:341:2 › Image › allows rotating using the crop tools ─ Error: Screenshot comparison failed: 50 pixels (ratio 0.50 of all image pixels) are different. Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-blocks-image-Image-allows-rotating-using-the-crop-tools-chromium/Image-allows-rotating-using-the-crop-tools-1-expected.png Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-blocks-image-Image-allows-rotating-using-the-crop-tools-chromium/Image-allows-rotating-using-the-crop-tools-1-actual.png Diff: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-blocks-image-Image-allows-rotating-using-the-crop-tools-chromium/Image-allows-rotating-using-the-crop-tools-1-diff.png 373 | expect( 374 | await imageBlockUtils.getImageBuffer( updatedImageSrc ) > 375 | ).toMatchSnapshot(); | ^ 376 | } ); 377 | 378 | test( 'should undo without broken temporary state', async ( { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:375:5
[chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes: test/e2e/specs/editor/blocks/image.spec.js#L789
2) [chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes Error: expect(received).toHaveAttribute(expected) Expected pattern: /ef5ada94-0439-4a3a-908a-441b528555ac/ Received string: "blob:http://localhost:8889/5d976e9f-d8f0-43b3-944b-8599e2e350d6" Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('role=document[name="Block: Image"i]').locator('role=img') - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d976e9f-d8f0-43b3-944b-8599e2e350d6" - waiting for locator('role=document[name="Block: Image"i]').locator('role=img') - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d976e9f-d8f0-43b3-944b-8599e2e350d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d976e9f-d8f0-43b3-944b-8599e2e350d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d976e9f-d8f0-43b3-944b-8599e2e350d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d976e9f-d8f0-43b3-944b-8599e2e350d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d976e9f-d8f0-43b3-944b-8599e2e350d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d976e9f-d8f0-43b3-944b-8599e2e350d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d976e9f-d8f0-43b3-944b-8599e2e350d6" 787 | const image = imageBlock.locator( 'role=img' ); 788 | await expect( image ).toBeVisible(); > 789 | await expect( image ).toHaveAttribute( | ^ 790 | 'src', 791 | new RegExp( filename ) 792 | ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:789:26
[chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes: test/e2e/specs/editor/blocks/image.spec.js#L789
2) [chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toHaveAttribute(expected) Expected pattern: /7bce7c09-e10d-4042-a044-383065221a28/ Received string: "blob:http://localhost:8889/8a05066a-5947-4c46-a5ce-17c5204e2173" Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('role=document[name="Block: Image"i]').locator('role=img') - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/8a05066a-5947-4c46-a5ce-17c5204e2173" - waiting for locator('role=document[name="Block: Image"i]').locator('role=img') - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/8a05066a-5947-4c46-a5ce-17c5204e2173" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/8a05066a-5947-4c46-a5ce-17c5204e2173" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/8a05066a-5947-4c46-a5ce-17c5204e2173" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/8a05066a-5947-4c46-a5ce-17c5204e2173" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/8a05066a-5947-4c46-a5ce-17c5204e2173" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/8a05066a-5947-4c46-a5ce-17c5204e2173" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/8a05066a-5947-4c46-a5ce-17c5204e2173" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/8a05066a-5947-4c46-a5ce-17c5204e2173" 787 | const image = imageBlock.locator( 'role=img' ); 788 | await expect( image ).toBeVisible(); > 789 | await expect( image ).toHaveAttribute( | ^ 790 | 'src', 791 | new RegExp( filename ) 792 | ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:789:26
[chromium] › editor/blocks/image.spec.js:840:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › zoom animation: test/e2e/specs/editor/blocks/image.spec.js#L789
3) [chromium] › editor/blocks/image.spec.js:840:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › zoom animation Error: expect(received).toHaveAttribute(expected) Expected pattern: /71b4c29c-62b2-41e1-ae16-a850d7978929/ Received string: "blob:http://localhost:8889/f8a0a894-0f93-4a64-9576-8d8a170cf8a2" Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('role=document[name="Block: Image"i]').locator('role=img') - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/f8a0a894-0f93-4a64-9576-8d8a170cf8a2" - waiting for locator('role=document[name="Block: Image"i]').locator('role=img') - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/f8a0a894-0f93-4a64-9576-8d8a170cf8a2" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/f8a0a894-0f93-4a64-9576-8d8a170cf8a2" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/f8a0a894-0f93-4a64-9576-8d8a170cf8a2" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/f8a0a894-0f93-4a64-9576-8d8a170cf8a2" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/f8a0a894-0f93-4a64-9576-8d8a170cf8a2" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/f8a0a894-0f93-4a64-9576-8d8a170cf8a2" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/f8a0a894-0f93-4a64-9576-8d8a170cf8a2" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/f8a0a894-0f93-4a64-9576-8d8a170cf8a2" 787 | const image = imageBlock.locator( 'role=img' ); 788 | await expect( image ).toBeVisible(); > 789 | await expect( image ).toHaveAttribute( | ^ 790 | 'src', 791 | new RegExp( filename ) 792 | ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:789:26
[chromium] › editor/blocks/image.spec.js:1005:3 › Image - interactivity › tests using uploaded image › lightbox should be overriden when link is configured for image: test/e2e/specs/editor/blocks/image.spec.js#L789
4) [chromium] › editor/blocks/image.spec.js:1005:3 › Image - interactivity › tests using uploaded image › lightbox should be overriden when link is configured for image Error: expect(received).toHaveAttribute(expected) Expected pattern: /1245a114-d097-4e36-a7da-9a5a9061dee7/ Received string: "blob:http://localhost:8889/9be92489-60cb-401b-83c5-edb53db7f358" Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('role=document[name="Block: Image"i]').locator('role=img') - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/9be92489-60cb-401b-83c5-edb53db7f358" - waiting for locator('role=document[name="Block: Image"i]').locator('role=img') - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/9be92489-60cb-401b-83c5-edb53db7f358" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/9be92489-60cb-401b-83c5-edb53db7f358" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/9be92489-60cb-401b-83c5-edb53db7f358" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/9be92489-60cb-401b-83c5-edb53db7f358" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/9be92489-60cb-401b-83c5-edb53db7f358" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/9be92489-60cb-401b-83c5-edb53db7f358" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/9be92489-60cb-401b-83c5-edb53db7f358" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/9be92489-60cb-401b-83c5-edb53db7f358" 787 | const image = imageBlock.locator( 'role=img' ); 788 | await expect( image ).toBeVisible(); > 789 | await expect( image ).toHaveAttribute( | ^ 790 | 'src', 791 | new RegExp( filename ) 792 | ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:789:26
🎭 Playwright Run Summary
156 passed (12.3m)
🎭 Playwright Run Summary
184 passed (15.6m)
🎭 Playwright Run Summary
2 skipped 174 passed (15.1m)
🎭 Playwright Run Summary
4 flaky [chromium] › editor/blocks/image.spec.js:341:2 › Image › allows rotating using the crop tools ── [chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes [chromium] › editor/blocks/image.spec.js:840:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › zoom animation [chromium] › editor/blocks/image.spec.js:1005:3 › Image - interactivity › tests using uploaded image › lightbox should be overriden when link is configured for image 189 passed (21.3m)

Artifacts

Produced during runtime
Name Size
failures-artifacts Expired
15.4 MB
flaky-tests-report Expired
49.1 KB