Skip to content

feat: support remarkPlugins & rehypePlugins (#160) #414

feat: support remarkPlugins & rehypePlugins (#160)

feat: support remarkPlugins & rehypePlugins (#160) #414

Triggered via push September 28, 2023 18:02
Status Failure
Total duration 17m 21s
Artifacts 4

test.yml

on: push
Matrix: test_linux
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 4 notices
[use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:80:5 › hmr: edit md file content: packages/playground/use-theme-doc/__tests__/hmr.spec.ts#L126
1) [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:80:5 › hmr: edit md file content Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.vp-local-outline').getByRole('link', { name: 'Heading one', exact: true }) - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 124 | await expect(headingBeforeEdit).toHaveCount(1) 125 | await expect(headingAfterEdit).toHaveCount(0) > 126 | await expect(outlineLinkBeforeEdit).toHaveCount(1) | ^ 127 | await expect(outlineLinkAfterEdit).toHaveCount(0) 128 | await expect(counterStateText).toHaveText('Counter component: 1.') 129 | }) at /home/runner/work/vite-plugin-react-pages/vite-plugin-react-pages/packages/playground/use-theme-doc/__tests__/hmr.spec.ts:126:39
[use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:80:5 › hmr: edit md file content: packages/playground/use-theme-doc/__tests__/hmr.spec.ts#L126
1) [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:80:5 › hmr: edit md file content Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.vp-local-outline').getByRole('link', { name: 'Heading one', exact: true }) - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 124 | await expect(headingBeforeEdit).toHaveCount(1) 125 | await expect(headingAfterEdit).toHaveCount(0) > 126 | await expect(outlineLinkBeforeEdit).toHaveCount(1) | ^ 127 | await expect(outlineLinkAfterEdit).toHaveCount(0) 128 | await expect(counterStateText).toHaveText('Counter component: 1.') 129 | }) at /home/runner/work/vite-plugin-react-pages/vite-plugin-react-pages/packages/playground/use-theme-doc/__tests__/hmr.spec.ts:126:39
[use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:80:5 › hmr: edit md file content: packages/playground/use-theme-doc/__tests__/hmr.spec.ts#L126
1) [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:80:5 › hmr: edit md file content Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.vp-local-outline').getByRole('link', { name: 'Heading one', exact: true }) - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 124 | await expect(headingBeforeEdit).toHaveCount(1) 125 | await expect(headingAfterEdit).toHaveCount(0) > 126 | await expect(outlineLinkBeforeEdit).toHaveCount(1) | ^ 127 | await expect(outlineLinkAfterEdit).toHaveCount(0) 128 | await expect(counterStateText).toHaveText('Counter component: 1.') 129 | }) at /home/runner/work/vite-plugin-react-pages/vite-plugin-react-pages/packages/playground/use-theme-doc/__tests__/hmr.spec.ts:126:39
[use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:51:5 › hmr: edit file (md static data notation): packages/playground/use-theme-doc/__tests__/hmr.spec.ts#L70
2) [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:51:5 › hmr: edit file (md static data notation) Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.vp-local-sider').locator('text="modified title"') - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 68 | await expect( 69 | page.locator('.vp-local-sider >> text="modified title"') > 70 | ).toHaveCount(1) | ^ 71 | await testPlayground.restore() 72 | await expect( 73 | page.locator('.vp-local-sider >> text="page2 title"') at /home/runner/work/vite-plugin-react-pages/vite-plugin-react-pages/packages/playground/use-theme-doc/__tests__/hmr.spec.ts:70:5
ubuntu-22.04 (chromium)
Process completed with exit code 1.
[use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:51:5 › hmr: edit file (md static data notation): packages/playground/use-theme-doc/__tests__/hmr.spec.ts#L70
1) [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:51:5 › hmr: edit file (md static data notation) Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.vp-local-sider').locator('text="modified title"') - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 68 | await expect( 69 | page.locator('.vp-local-sider >> text="modified title"') > 70 | ).toHaveCount(1) | ^ 71 | await testPlayground.restore() 72 | await expect( 73 | page.locator('.vp-local-sider >> text="page2 title"') at /home/runner/work/vite-plugin-react-pages/vite-plugin-react-pages/packages/playground/use-theme-doc/__tests__/hmr.spec.ts:70:5
[use-theme-doc:serve] › ..\packages\playground\use-theme-doc\__tests__\hmr.spec.ts:8:5 › hmr: edit file (js): packages\playground\use-theme-doc\__tests__\hmr.spec.ts#L10
1) [use-theme-doc:serve] › ..\packages\playground\use-theme-doc\__tests__\hmr.spec.ts:8:5 › hmr: edit file (js) Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('text="Jump to page1"') - locator resolved to 0 elements - unexpected value "0" 8 | test('hmr: edit file (js)', async ({ page, fsUtils, testPlayground }) => { 9 | // edit js content > 10 | await expect(page.locator('text="Jump to page1"')).toHaveCount(1) | ^ 11 | await expect(page.locator('text="Modified content!"')).toHaveCount(0) 12 | fsUtils.editFile('pages/$.tsx', (str) => { 13 | return str.replace('Jump to page1', 'Modified content!') at D:\a\vite-plugin-react-pages\vite-plugin-react-pages\packages\playground\use-theme-doc\__tests__\hmr.spec.ts:10:54
[use-theme-doc:serve] › ..\packages\playground\use-theme-doc\__tests__\hmr.spec.ts:80:5 › hmr: edit md file content: packages\playground\use-theme-doc\__tests__\hmr.spec.ts#L103
2) [use-theme-doc:serve] › ..\packages\playground\use-theme-doc\__tests__\hmr.spec.ts:80:5 › hmr: edit md file content Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.markdown-body').getByRole('heading', { name: 'Heading one', exact: true }) - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 101 | 102 | // initial state > 103 | await expect(headingBeforeEdit).toHaveCount(1) | ^ 104 | await expect(headingAfterEdit).toHaveCount(0) 105 | await expect(outlineLinkBeforeEdit).toHaveCount(1) 106 | await expect(outlineLinkAfterEdit).toHaveCount(0) at D:\a\vite-plugin-react-pages\vite-plugin-react-pages\packages\playground\use-theme-doc\__tests__\hmr.spec.ts:103:35
[use-theme-doc:serve] › ..\packages\playground\use-theme-doc\__tests__\navigate-tests.ts:16:3 › index page: packages\playground\use-theme-doc\__tests__\navigate-tests.ts#L223
3) [use-theme-doc:serve] › ..\packages\playground\use-theme-doc\__tests__\navigate-tests.ts:16:3 › index page Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.vp-antd-dropdown:visible') - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 221 | .locator('.vp-local-header .vp-local-localeSelectorCtn button') 222 | .hover() > 223 | await expect(page.locator('.vp-antd-dropdown:visible')).toHaveCount(1) | ^ 224 | await assertContainText(page.locator('.vp-antd-dropdown:visible'), [ 225 | '中文', 226 | 'English', at testHeader (D:\a\vite-plugin-react-pages\vite-plugin-react-pages\packages\playground\use-theme-doc\__tests__\navigate-tests.ts:223:63) at D:\a\vite-plugin-react-pages\vite-plugin-react-pages\packages\playground\use-theme-doc\__tests__\navigate-tests.ts:18:5
🎭 Playwright Run Summary
1 failed [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:80:5 › hmr: edit md file content 1 flaky [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:51:5 › hmr: edit file (md static data notation) 18 skipped 31 passed (6.9m)
🎭 Playwright Run Summary
1 flaky [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:51:5 › hmr: edit file (md static data notation) 18 skipped 32 passed (6.7m)
🎭 Playwright Run Summary
18 skipped 33 passed (7.0m)
🎭 Playwright Run Summary
3 flaky [use-theme-doc:serve] › ..\packages\playground\use-theme-doc\__tests__\hmr.spec.ts:8:5 › hmr: edit file (js) [use-theme-doc:serve] › ..\packages\playground\use-theme-doc\__tests__\hmr.spec.ts:80:5 › hmr: edit md file content [use-theme-doc:serve] › ..\packages\playground\use-theme-doc\__tests__\navigate-tests.ts:16:3 › index page 18 skipped 30 passed (9.9m)

Artifacts

Produced during runtime
Name Size
chromium-macos-latest-playwright-report Expired
500 KB
chromium-ubuntu-20.04-playwright-report Expired
1.58 MB
chromium-ubuntu-22.04-playwright-report Expired
2.29 MB
chromium-windows-latest-playwright-report Expired
2.79 MB