refactor: upgrade eslint and fix lint and type errors #483
Annotations
3 errors and 72 notices
[chromium] βΊ hmr.spec.ts:44:3 βΊ should update frontmatter correctly:
e2e/tests/hmr.spec.ts#L53
1) [chromium] βΊ hmr.spec.ts:44: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"
51 | await expect(frontmatterLocator).toHaveText('HMR foo')
52 | await hmrUpdateFrontmatter()
> 53 | await expect(frontmatterLocator).toHaveText('Updated foo')
| ^
54 | })
55 |
56 | test('should update title correctly', async ({ page }) => {
at /Users/runner/work/core/core/e2e/tests/hmr.spec.ts:53:38
|
[chromium] βΊ imports/style-exports.spec.ts:3:1 βΊ should load dynamic imported styles correctly:
e2e/tests/imports/style-exports.spec.ts#L8
2) [chromium] βΊ imports/style-exports.spec.ts:3:1 βΊ should load dynamic imported styles correctly
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.style-exports')
Expected string: "dynamic import"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.style-exports')
6 | const locator = page.locator('.style-exports')
7 |
> 8 | await expect(locator).toHaveText('dynamic import')
| ^
9 | await expect(locator).toHaveCSS('font-size', '20px')
10 | })
11 |
at /Users/runner/work/core/core/e2e/tests/imports/style-exports.spec.ts:8:25
|
[chromium] βΊ hmr.spec.ts:68:3 βΊ should update title and frontmatter correctly after navigation:
e2e/tests/hmr.spec.ts#L77
1) [chromium] βΊ hmr.spec.ts:68:3 βΊ should update title and frontmatter correctly after navigation
Error: Timed out 5000ms waiting for expect(locator).toHaveTitle(expected)
Locator: locator(':root')
Expected pattern: /HMR Title/
Received string: "VuePress E2E"
Call log:
- expect.toHaveTitle with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "VuePress E2E"
75 |
76 | await page.goto('hmr/title.html')
> 77 | await expect(page).toHaveTitle(/HMR Title/)
| ^
78 | await expect(titleLocator).toHaveText('HMR Title')
79 |
80 | // update title page
at /home/runner/work/core/core/e2e/tests/hmr.spec.ts:77:24
|
π Playwright Run Summary
69 passed (20.0s)
|
π Playwright Run Summary
66 passed (16.0s)
|
π Playwright Run Summary
69 passed (20.4s)
|
π Playwright Run Summary
66 passed (15.9s)
|
π Playwright Run Summary
69 passed (20.5s)
|
π Playwright Run Summary
66 passed (14.8s)
|
π Playwright Run Summary
69 passed (19.7s)
|
π Playwright Run Summary
66 passed (14.7s)
|
π Playwright Run Summary
69 passed (19.8s)
|
π Playwright Run Summary
66 passed (16.0s)
|
π Playwright Run Summary
69 passed (21.9s)
|
π Playwright Run Summary
66 passed (16.0s)
|
π Playwright Run Summary
69 passed (20.3s)
|
π Playwright Run Summary
66 passed (15.8s)
|
π Playwright Run Summary
69 passed (24.4s)
|
π Playwright Run Summary
66 passed (17.2s)
|
π Playwright Run Summary
69 passed (24.0s)
|
π Playwright Run Summary
66 passed (20.8s)
|
π Playwright Run Summary
69 passed (26.0s)
|
π Playwright Run Summary
66 passed (20.8s)
|
π Playwright Run Summary
2 flaky
[chromium] βΊ hmr.spec.ts:44:3 βΊ should update frontmatter correctly ββββββββββββββββββββββββββββ
[chromium] βΊ imports/style-exports.spec.ts:3:1 βΊ should load dynamic imported styles correctly β
67 passed (33.1s)
|
π Playwright Run Summary
66 passed (20.8s)
|
π Playwright Run Summary
69 passed (23.3s)
|
π Playwright Run Summary
66 passed (15.1s)
|
π Playwright Run Summary
69 passed (20.9s)
|
π Playwright Run Summary
66 passed (16.3s)
|
π Playwright Run Summary
69 passed (25.0s)
|
π Playwright Run Summary
66 passed (17.5s)
|
π Playwright Run Summary
69 passed (28.0s)
|
π Playwright Run Summary
66 passed (23.7s)
|
π Playwright Run Summary
69 passed (29.2s)
|
π Playwright Run Summary
66 passed (23.6s)
|
π Playwright Run Summary
69 passed (29.8s)
|
π Playwright Run Summary
66 passed (25.2s)
|
π Playwright Run Summary
1 flaky
[chromium] βΊ hmr.spec.ts:68:3 βΊ should update title and frontmatter correctly after navigation β
68 passed (36.4s)
|
π Playwright Run Summary
66 passed (25.3s)
|
π Playwright Run Summary
69 passed (30.3s)
|
π Playwright Run Summary
66 passed (25.0s)
|
π Playwright Run Summary
69 passed (29.6s)
|
π Playwright Run Summary
66 passed (26.0s)
|
π Playwright Run Summary
69 passed (33.6s)
|
π Playwright Run Summary
66 passed (26.0s)
|
π Playwright Run Summary
69 passed (28.1s)
|
π Playwright Run Summary
66 passed (25.5s)
|
π Playwright Run Summary
69 passed (30.6s)
|
π Playwright Run Summary
66 passed (22.1s)
|
π Playwright Run Summary
69 passed (26.8s)
|
π Playwright Run Summary
66 passed (21.3s)
|
π Playwright Run Summary
69 passed (27.7s)
|
π Playwright Run Summary
66 passed (21.5s)
|
π Playwright Run Summary
69 passed (30.9s)
|
π Playwright Run Summary
66 passed (21.5s)
|
π Playwright Run Summary
69 passed (30.7s)
|
π Playwright Run Summary
66 passed (21.4s)
|
π Playwright Run Summary
69 passed (27.2s)
|
π Playwright Run Summary
66 passed (21.6s)
|
π Playwright Run Summary
69 passed (41.2s)
|
π Playwright Run Summary
66 passed (36.1s)
|
π Playwright Run Summary
69 passed (43.1s)
|
π Playwright Run Summary
66 passed (36.0s)
|
π Playwright Run Summary
69 passed (42.6s)
|
π Playwright Run Summary
66 passed (35.3s)
|
π Playwright Run Summary
69 passed (41.7s)
|
π Playwright Run Summary
66 passed (36.6s)
|
π Playwright Run Summary
69 passed (23.4s)
|
π Playwright Run Summary
66 passed (18.4s)
|
π Playwright Run Summary
69 passed (25.6s)
|
π Playwright Run Summary
66 passed (19.9s)
|
π Playwright Run Summary
69 passed (39.9s)
|
π Playwright Run Summary
66 passed (33.3s)
|
π Playwright Run Summary
69 passed (43.6s)
|
π Playwright Run Summary
66 passed (33.4s)
|