Add e2e tests for Behaviors in the site editor #79371
end2end-test.yml
on: pull_request
Matrix: e2e-playwright
Matrix: e2e-puppeteer
Report to GitHub
3m 50s
Annotations
9 errors and 4 notices
[chromium] › site-editor/behaviors.spec.js:106:2 › Site editor behaviors › Behaviors should be set to "default" by default:
test/e2e/specs/site-editor/behaviors.spec.js#L57
1) [chromium] › site-editor/behaviors.spec.js:106:2 › Site editor behaviors › Behaviors should be set to "default" by default
TimeoutError: locator.setChecked: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for locator('#gutenberg-interactivity-api-core-blocks')
============================================================
55 | await page
56 | .locator( `#gutenberg-interactivity-api-core-blocks` )
> 57 | .setChecked( true );
| ^
58 | await page.locator( `input[name="submit"]` ).click();
59 | await page.waitForLoadState();
60 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/behaviors.spec.js:57:5
|
[chromium] › site-editor/behaviors.spec.js:106:2 › Site editor behaviors › Behaviors should be set to "default" by default:
test/e2e/specs/site-editor/behaviors.spec.js#L57
1) [chromium] › site-editor/behaviors.spec.js:106:2 › Site editor behaviors › Behaviors should be set to "default" by default
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.setChecked: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for locator('#gutenberg-interactivity-api-core-blocks')
============================================================
55 | await page
56 | .locator( `#gutenberg-interactivity-api-core-blocks` )
> 57 | .setChecked( true );
| ^
58 | await page.locator( `input[name="submit"]` ).click();
59 | await page.waitForLoadState();
60 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/behaviors.spec.js:57:5
|
[chromium] › site-editor/behaviors.spec.js:106:2 › Site editor behaviors › Behaviors should be set to "default" by default:
test/e2e/specs/site-editor/behaviors.spec.js#L57
1) [chromium] › site-editor/behaviors.spec.js:106:2 › Site editor behaviors › Behaviors should be set to "default" by default
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.setChecked: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for locator('#gutenberg-interactivity-api-core-blocks')
============================================================
55 | await page
56 | .locator( `#gutenberg-interactivity-api-core-blocks` )
> 57 | .setChecked( true );
| ^
58 | await page.locator( `input[name="submit"]` ).click();
59 | await page.waitForLoadState();
60 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/behaviors.spec.js:57:5
|
[chromium] › site-editor/behaviors.spec.js:135:2 › Site editor behaviors › Test updating the behaviors:
test/e2e/specs/site-editor/behaviors.spec.js#L57
2) [chromium] › site-editor/behaviors.spec.js:135:2 › Site editor behaviors › Test updating the behaviors
TimeoutError: locator.setChecked: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for locator('#gutenberg-interactivity-api-core-blocks')
============================================================
55 | await page
56 | .locator( `#gutenberg-interactivity-api-core-blocks` )
> 57 | .setChecked( true );
| ^
58 | await page.locator( `input[name="submit"]` ).click();
59 | await page.waitForLoadState();
60 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/behaviors.spec.js:57:5
|
[chromium] › site-editor/behaviors.spec.js:135:2 › Site editor behaviors › Test updating the behaviors:
test/e2e/specs/site-editor/behaviors.spec.js#L57
2) [chromium] › site-editor/behaviors.spec.js:135:2 › Site editor behaviors › Test updating the behaviors
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.setChecked: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for locator('#gutenberg-interactivity-api-core-blocks')
============================================================
55 | await page
56 | .locator( `#gutenberg-interactivity-api-core-blocks` )
> 57 | .setChecked( true );
| ^
58 | await page.locator( `input[name="submit"]` ).click();
59 | await page.waitForLoadState();
60 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/behaviors.spec.js:57:5
|
[chromium] › site-editor/behaviors.spec.js:135:2 › Site editor behaviors › Test updating the behaviors:
test/e2e/specs/site-editor/behaviors.spec.js#L57
2) [chromium] › site-editor/behaviors.spec.js:135:2 › Site editor behaviors › Test updating the behaviors
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.setChecked: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for locator('#gutenberg-interactivity-api-core-blocks')
============================================================
55 | await page
56 | .locator( `#gutenberg-interactivity-api-core-blocks` )
> 57 | .setChecked( true );
| ^
58 | await page.locator( `input[name="submit"]` ).click();
59 | await page.waitForLoadState();
60 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/behaviors.spec.js:57:5
|
Playwright - 3
Process completed with exit code 1.
|
[chromium] › editor/blocks/image.spec.js:911:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › fade animation:
test/e2e/specs/editor/blocks/image.spec.js#L764
1) [chromium] › editor/blocks/image.spec.js:911:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › fade animation
Error: expect(received).toHaveAttribute(expected)
Expected pattern: /1cea3e41-75be-4e13-b841-3165d2ff2114/
Received string: "blob:http://localhost:8889/75b3cd5a-5386-49b3-82a4-394ae6ee85c1"
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/75b3cd5a-5386-49b3-82a4-394ae6ee85c1"
- 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/75b3cd5a-5386-49b3-82a4-394ae6ee85c1"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/75b3cd5a-5386-49b3-82a4-394ae6ee85c1"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/75b3cd5a-5386-49b3-82a4-394ae6ee85c1"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/75b3cd5a-5386-49b3-82a4-394ae6ee85c1"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/75b3cd5a-5386-49b3-82a4-394ae6ee85c1"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/75b3cd5a-5386-49b3-82a4-394ae6ee85c1"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/75b3cd5a-5386-49b3-82a4-394ae6ee85c1"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/75b3cd5a-5386-49b3-82a4-394ae6ee85c1"
762 | const image = imageBlock.locator( 'role=img' );
763 | await expect( image ).toBeVisible();
> 764 | await expect( image ).toHaveAttribute(
| ^
765 | 'src',
766 | new RegExp( filename )
767 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:764:26
|
[chromium] › editor/blocks/image.spec.js:980: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#L764
2) [chromium] › editor/blocks/image.spec.js:980:3 › Image - interactivity › tests using uploaded image › lightbox should be overriden when link is configured for image
Error: expect(received).toHaveAttribute(expected)
Expected pattern: /7919d179-7440-4aa8-92cb-8fa83be0df5c/
Received string: "blob:http://localhost:8889/ad878950-45d3-4b10-a8b1-52880d2e4e03"
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/ad878950-45d3-4b10-a8b1-52880d2e4e03"
- 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/ad878950-45d3-4b10-a8b1-52880d2e4e03"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ad878950-45d3-4b10-a8b1-52880d2e4e03"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ad878950-45d3-4b10-a8b1-52880d2e4e03"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ad878950-45d3-4b10-a8b1-52880d2e4e03"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ad878950-45d3-4b10-a8b1-52880d2e4e03"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ad878950-45d3-4b10-a8b1-52880d2e4e03"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ad878950-45d3-4b10-a8b1-52880d2e4e03"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ad878950-45d3-4b10-a8b1-52880d2e4e03"
762 | const image = imageBlock.locator( 'role=img' );
763 | await expect( image ).toBeVisible();
> 764 | await expect( image ).toHaveAttribute(
| ^
765 | 'src',
766 | new RegExp( filename )
767 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:764:26
|
🎭 Playwright Run Summary
2 skipped
174 passed (10.7m)
|
🎭 Playwright Run Summary
184 passed (13.5m)
|
🎭 Playwright Run Summary
2 failed
[chromium] › site-editor/behaviors.spec.js:106:2 › Site editor behaviors › Behaviors should be set to "default" by default
[chromium] › site-editor/behaviors.spec.js:135:2 › Site editor behaviors › Test updating the behaviors
156 passed (16.7m)
|
🎭 Playwright Run Summary
2 flaky
[chromium] › editor/blocks/image.spec.js:911:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › fade animation
[chromium] › editor/blocks/image.spec.js:980:3 › Image - interactivity › tests using uploaded image › lightbox should be overriden when link is configured for image
185 passed (17.4m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
failures-artifacts
Expired
|
8.67 MB |
|
flaky-tests-report
Expired
|
22.5 KB |
|