Font Library: add e2e tests for Upload tab #97819
end2end-test.yml
on: pull_request
Matrix: e2e-playwright
Puppeteer
6m 31s
Report to GitHub
3m 31s
Annotations
12 errors, 10 warnings, and 8 notices
[chromium] › editor/blocks/navigation.spec.js:23:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to a list of pages if there are no menus:
test/e2e/specs/editor/blocks/navigation.spec.js#L34
1) [chromium] › editor/blocks/navigation.spec.js:23:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to a list of pages if there are no menus
Error: Timed out 10000ms waiting for expect(locator).toBeVisible()
Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Page List' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 10000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Page List' })
32 | } );
33 |
> 34 | await expect( pageListBlock ).toBeVisible( {
| ^
35 | // Wait for the Nav and Page List block API requests to resolve.
36 | // Note: avoid waiting on network requests as these are not perceivable
37 | // to the user.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:34:34
|
Playwright - 6
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
|
[chromium] › site-editor/font-library.spec.js:111:3 › Font Library › When user has permissions to edit font families › should display the "Upload" tab and upload a local font:
test/e2e/specs/site-editor/font-library.spec.js#L116
1) [chromium] › site-editor/font-library.spec.js:111:3 › Font Library › When user has permissions to edit font families › should display the "Upload" tab and upload a local font
Error: Timed out 40000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('tab', { name: 'Upload' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 40000ms
- waiting for getByRole('tab', { name: 'Upload' })
114 | await expect(
115 | page.getByRole( 'tab', { name: 'Upload' } )
> 116 | ).toBeVisible( { timeout: 40000 } );
| ^
117 |
118 | // Ensure font does not exist before uploading
119 | if (
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:116:6
|
[chromium] › site-editor/font-library.spec.js:111:3 › Font Library › When user has permissions to edit font families › should display the "Upload" tab and upload a local font:
test/e2e/specs/site-editor/font-library.spec.js#L116
1) [chromium] › site-editor/font-library.spec.js:111:3 › Font Library › When user has permissions to edit font families › should display the "Upload" tab and upload a local font
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 40000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('tab', { name: 'Upload' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 40000ms
- waiting for getByRole('tab', { name: 'Upload' })
114 | await expect(
115 | page.getByRole( 'tab', { name: 'Upload' } )
> 116 | ).toBeVisible( { timeout: 40000 } );
| ^
117 |
118 | // Ensure font does not exist before uploading
119 | if (
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:116:6
|
[chromium] › site-editor/font-library.spec.js:111:3 › Font Library › When user has permissions to edit font families › should display the "Upload" tab and upload a local font:
test/e2e/specs/site-editor/font-library.spec.js#L116
1) [chromium] › site-editor/font-library.spec.js:111:3 › Font Library › When user has permissions to edit font families › should display the "Upload" tab and upload a local font
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 40000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('tab', { name: 'Upload' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 40000ms
- waiting for getByRole('tab', { name: 'Upload' })
114 | await expect(
115 | page.getByRole( 'tab', { name: 'Upload' } )
> 116 | ).toBeVisible( { timeout: 40000 } );
| ^
117 |
118 | // Ensure font does not exist before uploading
119 | if (
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:116:6
|
[chromium] › site-editor/font-library.spec.js:152:3 › Font Library › When user has permissions to edit font families › should display the default collections tab:
test/e2e/specs/site-editor/font-library.spec.js#L157
2) [chromium] › site-editor/font-library.spec.js:152:3 › Font Library › When user has permissions to edit font families › should display the default collections tab
Error: Timed out 40000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('tab', { name: 'Install Fonts' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 40000ms
- waiting for getByRole('tab', { name: 'Install Fonts' })
155 | await expect(
156 | page.getByRole( 'tab', { name: 'Install Fonts' } )
> 157 | ).toBeVisible( { timeout: 40000 } );
| ^
158 | } );
159 |
160 | test( 'should display the "Delete" button and delete the font', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:157:6
|
[chromium] › site-editor/font-library.spec.js:152:3 › Font Library › When user has permissions to edit font families › should display the default collections tab:
test/e2e/specs/site-editor/font-library.spec.js#L157
2) [chromium] › site-editor/font-library.spec.js:152:3 › Font Library › When user has permissions to edit font families › should display the default collections tab
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 40000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('tab', { name: 'Install Fonts' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 40000ms
- waiting for getByRole('tab', { name: 'Install Fonts' })
155 | await expect(
156 | page.getByRole( 'tab', { name: 'Install Fonts' } )
> 157 | ).toBeVisible( { timeout: 40000 } );
| ^
158 | } );
159 |
160 | test( 'should display the "Delete" button and delete the font', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:157:6
|
[chromium] › site-editor/font-library.spec.js:152:3 › Font Library › When user has permissions to edit font families › should display the default collections tab:
test/e2e/specs/site-editor/font-library.spec.js#L157
2) [chromium] › site-editor/font-library.spec.js:152:3 › Font Library › When user has permissions to edit font families › should display the default collections tab
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 40000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('tab', { name: 'Install Fonts' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 40000ms
- waiting for getByRole('tab', { name: 'Install Fonts' })
155 | await expect(
156 | page.getByRole( 'tab', { name: 'Install Fonts' } )
> 157 | ).toBeVisible( { timeout: 40000 } );
| ^
158 | } );
159 |
160 | test( 'should display the "Delete" button and delete the font', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:157:6
|
[chromium] › site-editor/font-library.spec.js:160:3 › Font Library › When user has permissions to edit font families › should display the "Delete" button and delete the font:
test/e2e/specs/site-editor/font-library.spec.js#L165
3) [chromium] › site-editor/font-library.spec.js:160:3 › Font Library › When user has permissions to edit font families › should display the "Delete" button and delete the font
TimeoutError: locator.click: Timeout 40000ms exceeded.
=========================== logs ===========================
waiting for getByRole('button', { name: 'Commissioner' })
============================================================
163 | await page
164 | .getByRole( 'button', { name: 'Commissioner' } )
> 165 | .click( { timeout: 40000 } );
| ^
166 |
167 | await expect(
168 | page.getByRole( 'button', { name: 'Delete' } )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:165:6
|
[chromium] › site-editor/font-library.spec.js:160:3 › Font Library › When user has permissions to edit font families › should display the "Delete" button and delete the font:
test/e2e/specs/site-editor/font-library.spec.js#L165
3) [chromium] › site-editor/font-library.spec.js:160:3 › Font Library › When user has permissions to edit font families › should display the "Delete" button and delete the font
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 40000ms exceeded.
=========================== logs ===========================
waiting for getByRole('button', { name: 'Commissioner' })
============================================================
163 | await page
164 | .getByRole( 'button', { name: 'Commissioner' } )
> 165 | .click( { timeout: 40000 } );
| ^
166 |
167 | await expect(
168 | page.getByRole( 'button', { name: 'Delete' } )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:165:6
|
[chromium] › site-editor/font-library.spec.js:160:3 › Font Library › When user has permissions to edit font families › should display the "Delete" button and delete the font:
test/e2e/specs/site-editor/font-library.spec.js#L165
3) [chromium] › site-editor/font-library.spec.js:160:3 › Font Library › When user has permissions to edit font families › should display the "Delete" button and delete the font
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 40000ms exceeded.
=========================== logs ===========================
waiting for getByRole('button', { name: 'Commissioner' })
============================================================
163 | await page
164 | .getByRole( 'button', { name: 'Commissioner' } )
> 165 | .click( { timeout: 40000 } );
| ^
166 |
167 | await expect(
168 | page.getByRole( 'button', { name: 'Delete' } )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:165:6
|
[chromium] › site-editor/font-library.spec.js:221:3 › Font Library › When user does not have permission to edit font families › should not display the "Delete" button in the footer:
test/e2e/specs/site-editor/font-library.spec.js#L231
4) [chromium] › site-editor/font-library.spec.js:221:3 › Font Library › When user does not have permission to edit font families › should not display the "Delete" button in the footer
TimeoutError: locator.click: Timeout 40000ms exceeded.
=========================== logs ===========================
waiting for getByRole('tab', { name: 'Upload' })
============================================================
229 | await page
230 | .getByRole( 'tab', { name: 'Upload' } )
> 231 | .click( { timeout: 40000 } );
| ^
232 | const fileChooserPromise = page.waitForEvent( 'filechooser' );
233 | await page.getByRole( 'button', { name: 'Upload Font' } ).click();
234 | const fileChooser = await fileChooserPromise;
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:231:6
|
Puppeteer
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playwright - 5
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playwright - 7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playwright - 1
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playwright - 8
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playwright - 4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playwright - 2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playwright - 3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playwright - 6
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Report to GitHub
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8, ./packages/report-flaky-tests. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
🎭 Playwright Run Summary
1 skipped
163 passed (7.2m)
|
🎭 Playwright Run Summary
197 passed (7.3m)
|
🎭 Playwright Run Summary
11 skipped
169 passed (7.5m)
|
🎭 Playwright Run Summary
3 skipped
129 passed (7.3m)
|
🎭 Playwright Run Summary
163 passed (7.5m)
|
🎭 Playwright Run Summary
1 flaky
[chromium] › editor/blocks/navigation.spec.js:23:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to a list of pages if there are no menus
1 skipped
154 passed (7.7m)
|
🎭 Playwright Run Summary
171 passed (8.2m)
|
🎭 Playwright Run Summary
4 failed
[chromium] › site-editor/font-library.spec.js:111:3 › Font Library › When user has permissions to edit font families › should display the "Upload" tab and upload a local font
[chromium] › site-editor/font-library.spec.js:152:3 › Font Library › When user has permissions to edit font families › should display the default collections tab
[chromium] › site-editor/font-library.spec.js:160:3 › Font Library › When user has permissions to edit font families › should display the "Delete" button and delete the font
[chromium] › site-editor/font-library.spec.js:221:3 › Font Library › When user does not have permission to edit font families › should not display the "Delete" button in the footer
4 skipped
160 passed (17.0m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
failures-artifacts
Expired
|
1.34 MB |
|
flaky-tests-report
Expired
|
1.04 KB |
|