Skip to content

test(e2e): add more test cases for hmr #505

test(e2e): add more test cases for hmr

test(e2e): add more test cases for hmr #505

Triggered via push September 10, 2024 04:31
Status Success
Total duration 5m 2s
Artifacts

e2e.yml

on: push
Matrix: e2e
e2e result
0s
e2e result
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 72 notices
[chromium] β€Ί hmr.spec.ts:67:3 β€Ί should update frontmatter correctly: e2e/tests/hmr.spec.ts#L76
1) [chromium] β€Ί hmr.spec.ts:67:3 β€Ί should update frontmatter correctly ─────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('.e2e-theme-content #rendered-foo + p') Expected string: "Updated foo" Received string: "HMR foo" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('.e2e-theme-content #rendered-foo + p') - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" 74 | await expect(frontmatterLocator).toHaveText('HMR foo') 75 | await hmrUpdateFrontmatter() > 76 | await expect(frontmatterLocator).toHaveText('Updated foo') | ^ 77 | }) 78 | 79 | test('should update title correctly', async ({ page }) => { at /Users/runner/work/core/core/e2e/tests/hmr.spec.ts:76:38
[chromium] β€Ί hmr.spec.ts:67:3 β€Ί should update frontmatter correctly: e2e/tests/hmr.spec.ts#L74
1) [chromium] β€Ί hmr.spec.ts:67:3 β€Ί should update frontmatter correctly ─────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('.e2e-theme-content #rendered-foo + p') Expected string: "HMR foo" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('.e2e-theme-content #rendered-foo + p') 72 | await page.goto('hmr/frontmatter.html') 73 | > 74 | await expect(frontmatterLocator).toHaveText('HMR foo') | ^ 75 | await hmrUpdateFrontmatter() 76 | await expect(frontmatterLocator).toHaveText('Updated foo') 77 | }) at /Users/runner/work/core/core/e2e/tests/hmr.spec.ts:74:38
[chromium] β€Ί hmr.spec.ts:96:3 β€Ί should update content and frontmatter and title correctly after navigation: e2e/tests/hmr.spec.ts#L122
1) [chromium] β€Ί hmr.spec.ts:96:3 β€Ί should update content and frontmatter and title correctly after navigation Error: Timed out 5000ms waiting for expect(locator).toHaveTitle(expected) Locator: locator(':root') Expected pattern: /HMR Title/ Received string: "Updated Title | VuePress E2E" Call log: - expect.toHaveTitle with timeout 5000ms - waiting for locator(':root') - locator resolved to <html lang="en">…</html> - unexpected value "" - locator resolved to <html lang="en">…</html> - unexpected value "" - locator resolved to <html lang="en-US">…</html> - unexpected value "Updated Title | VuePress E2E" - locator resolved to <html lang="en-US">…</html> - unexpected value "Updated Title | VuePress E2E" - locator resolved to <html lang="en-US">…</html> - unexpected value "Updated Title | VuePress E2E" - locator resolved to <html lang="en-US">…</html> - unexpected value "Updated Title | VuePress E2E" - locator resolved to <html lang="en-US">…</html> - unexpected value "Updated Title | VuePress E2E" - locator resolved to <html lang="en-US">…</html> - unexpected value "Updated Title | VuePress E2E" - locator resolved to <html lang="en-US">…</html> - unexpected value "Updated Title | VuePress E2E" 120 | // start from title page 121 | await page.goto('hmr/title.html') > 122 | await expect(page).toHaveTitle(/HMR Title/) | ^ 123 | await expect(titleLocator).toHaveText('HMR Title') 124 | await expect(renderedTitleLocator).toHaveText('HMR Title') 125 | at /Users/runner/work/core/core/e2e/tests/hmr.spec.ts:122:24
[chromium] β€Ί hmr.spec.ts:96:3 β€Ί should update content and frontmatter and title correctly after navigation: e2e/tests/hmr.spec.ts#L138
1) [chromium] β€Ί hmr.spec.ts:96:3 β€Ί should update content and frontmatter and title correctly after navigation Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('.e2e-theme-content #rendered-foo + p') Expected string: "Updated foo" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('.e2e-theme-content #rendered-foo + p') - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" - locator resolved to <p>HMR foo</p> - unexpected value "HMR foo" 136 | // update frontmatter page 137 | await hmrUpdateFrontmatter() > 138 | await expect(frontmatterLocator).toHaveText('Updated foo') | ^ 139 | 140 | // navigate to content page 141 | await contentPageLinkLocator.click() at /home/runner/work/core/core/e2e/tests/hmr.spec.ts:138:38
🎭 Playwright Run Summary
71 passed (20.2s)
🎭 Playwright Run Summary
67 passed (15.4s)
🎭 Playwright Run Summary
71 passed (23.9s)
🎭 Playwright Run Summary
67 passed (15.4s)
🎭 Playwright Run Summary
71 passed (21.2s)
🎭 Playwright Run Summary
67 passed (16.4s)
🎭 Playwright Run Summary
71 passed (21.5s)
🎭 Playwright Run Summary
67 passed (16.5s)
🎭 Playwright Run Summary
71 passed (23.1s)
🎭 Playwright Run Summary
67 passed (15.3s)
🎭 Playwright Run Summary
71 passed (20.5s)
🎭 Playwright Run Summary
67 passed (15.2s)
🎭 Playwright Run Summary
71 passed (26.9s)
🎭 Playwright Run Summary
67 passed (20.1s)
🎭 Playwright Run Summary
71 passed (25.2s)
🎭 Playwright Run Summary
67 passed (20.2s)
🎭 Playwright Run Summary
71 passed (21.3s)
🎭 Playwright Run Summary
67 passed (16.7s)
🎭 Playwright Run Summary
71 passed (21.4s)
🎭 Playwright Run Summary
67 passed (16.7s)
🎭 Playwright Run Summary
1 flaky [chromium] β€Ί hmr.spec.ts:67:3 β€Ί should update frontmatter correctly ──────────────────────────── 70 passed (33.0s)
🎭 Playwright Run Summary
67 passed (15.6s)
🎭 Playwright Run Summary
1 flaky [chromium] β€Ί hmr.spec.ts:96:3 β€Ί should update content and frontmatter and title correctly after navigation 70 passed (28.6s)
🎭 Playwright Run Summary
67 passed (15.9s)
🎭 Playwright Run Summary
71 passed (26.2s)
🎭 Playwright Run Summary
67 passed (20.9s)
🎭 Playwright Run Summary
71 passed (29.1s)
🎭 Playwright Run Summary
67 passed (21.3s)
🎭 Playwright Run Summary
71 passed (22.4s)
🎭 Playwright Run Summary
67 passed (16.2s)
🎭 Playwright Run Summary
71 passed (29.1s)
🎭 Playwright Run Summary
67 passed (20.7s)
🎭 Playwright Run Summary
71 passed (29.1s)
🎭 Playwright Run Summary
67 passed (23.8s)
🎭 Playwright Run Summary
71 passed (29.2s)
🎭 Playwright Run Summary
67 passed (23.9s)
🎭 Playwright Run Summary
71 passed (30.8s)
🎭 Playwright Run Summary
67 passed (25.2s)
🎭 Playwright Run Summary
71 passed (31.6s)
🎭 Playwright Run Summary
67 passed (25.3s)
🎭 Playwright Run Summary
1 flaky [chromium] β€Ί hmr.spec.ts:96:3 β€Ί should update content and frontmatter and title correctly after navigation 70 passed (38.9s)
🎭 Playwright Run Summary
67 passed (26.4s)
🎭 Playwright Run Summary
71 passed (32.4s)
🎭 Playwright Run Summary
67 passed (26.5s)
🎭 Playwright Run Summary
71 passed (28.7s)
🎭 Playwright Run Summary
67 passed (21.4s)
🎭 Playwright Run Summary
71 passed (27.1s)
🎭 Playwright Run Summary
67 passed (21.2s)
🎭 Playwright Run Summary
71 passed (28.6s)
🎭 Playwright Run Summary
67 passed (21.9s)
🎭 Playwright Run Summary
71 passed (37.5s)
🎭 Playwright Run Summary
67 passed (23.2s)
🎭 Playwright Run Summary
71 passed (32.7s)
🎭 Playwright Run Summary
67 passed (21.9s)
🎭 Playwright Run Summary
71 passed (27.3s)
🎭 Playwright Run Summary
67 passed (21.6s)
🎭 Playwright Run Summary
71 passed (43.1s)
🎭 Playwright Run Summary
67 passed (34.9s)
🎭 Playwright Run Summary
71 passed (44.6s)
🎭 Playwright Run Summary
67 passed (35.3s)
🎭 Playwright Run Summary
71 passed (43.8s)
🎭 Playwright Run Summary
67 passed (36.3s)
🎭 Playwright Run Summary
71 passed (43.6s)
🎭 Playwright Run Summary
67 passed (36.2s)
🎭 Playwright Run Summary
71 passed (25.4s)
🎭 Playwright Run Summary
67 passed (20.0s)
🎭 Playwright Run Summary
71 passed (28.5s)
🎭 Playwright Run Summary
67 passed (20.1s)
🎭 Playwright Run Summary
71 passed (45.8s)
🎭 Playwright Run Summary
67 passed (35.9s)
🎭 Playwright Run Summary
71 passed (48.8s)
🎭 Playwright Run Summary
67 passed (38.4s)