refactor: upgrade eslint and fix lint and type errors (#1600) #486
Annotations
8 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] βΊ hmr.spec.ts:68:3 βΊ should update title and frontmatter correctly after navigation:
e2e/tests/hmr.spec.ts#L77
2) [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: ""
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">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
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 /Users/runner/work/core/core/e2e/tests/hmr.spec.ts:77:24
|
[chromium] βΊ imports/conditional-exports.spec.ts:4:1 βΊ should load different files correctly:
e2e/tests/imports/conditional-exports.spec.ts#L7
3) [chromium] βΊ imports/conditional-exports.spec.ts:4:1 βΊ should load different files correctly ββ
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content p')
Expected string: "browser-mjs"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content p')
5 | await page.goto('imports/conditional-exports.html')
6 |
> 7 | await expect(page.locator('.e2e-theme-content p')).toHaveText('browser-mjs')
| ^
8 |
9 | if (COMMAND === 'build') {
10 | expect(
at /Users/runner/work/core/core/e2e/tests/imports/conditional-exports.spec.ts:7:54
|
[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] βΊ hmr.spec.ts:56:3 βΊ should update title correctly:
e2e/tests/hmr.spec.ts#L64
1) [chromium] βΊ hmr.spec.ts:56:3 βΊ should update title correctly βββββββββββββββββββββββββββββββββ
Error: Timed out 5000ms waiting for expect(locator).toHaveTitle(expected)
Locator: locator(':root')
Expected pattern: /Updated Title/
Received string: "HMR Title | VuePress E2E"
Call log:
- expect.toHaveTitle with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "HMR Title | VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "HMR Title | VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "HMR Title | VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "HMR Title | VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "HMR Title | VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "HMR Title | VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "HMR Title | VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "HMR Title | VuePress E2E"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "HMR Title | VuePress E2E"
62 | await expect(titleLocator).toHaveText('HMR Title')
63 | await hmrUpdateTitle()
> 64 | await expect(page).toHaveTitle(/Updated Title/)
| ^
65 | await expect(titleLocator).toHaveText('Updated Title')
66 | })
67 |
at /Users/runner/work/core/core/e2e/tests/hmr.spec.ts:64:24
|
[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: "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-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"
- locator resolved to <html lang="en-US">β¦</html>
- unexpected value "Updated Title | 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 /Users/runner/work/core/core/e2e/tests/hmr.spec.ts:77:24
|
[chromium] βΊ hmr.spec.ts:56:3 βΊ should update title correctly:
e2e/tests/hmr.spec.ts#L61
1) [chromium] βΊ hmr.spec.ts:56:3 βΊ should update title correctly βββββββββββββββββββββββββββββββββ
Error: Timed out 5000ms waiting for expect(locator).toHaveTitle(expected)
Locator: locator(':root')
Expected pattern: /HMR Title/
Received string: ""
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">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
59 | await page.goto('hmr/title.html')
60 |
> 61 | await expect(page).toHaveTitle(/HMR Title/)
| ^
62 | await expect(titleLocator).toHaveText('HMR Title')
63 | await hmrUpdateTitle()
64 | await expect(page).toHaveTitle(/Updated Title/)
at /Users/runner/work/core/core/e2e/tests/hmr.spec.ts:61:24
|
[chromium] βΊ hmr.spec.ts:68:3 βΊ should update title and frontmatter correctly after navigation:
e2e/tests/hmr.spec.ts#L77
2) [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: ""
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">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
- locator resolved to <html lang="en">β¦</html>
- unexpected value ""
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 /Users/runner/work/core/core/e2e/tests/hmr.spec.ts:77:24
|
π Playwright Run Summary
69 passed (20.6s)
|
π Playwright Run Summary
66 passed (16.0s)
|
π Playwright Run Summary
69 passed (20.5s)
|
π Playwright Run Summary
66 passed (15.9s)
|
π Playwright Run Summary
69 passed (22.1s)
|
π Playwright Run Summary
66 passed (14.8s)
|
π Playwright Run Summary
69 passed (20.7s)
|
π Playwright Run Summary
66 passed (15.1s)
|
π Playwright Run Summary
69 passed (20.0s)
|
π Playwright Run Summary
66 passed (16.0s)
|
π Playwright Run Summary
69 passed (21.1s)
|
π Playwright Run Summary
66 passed (16.1s)
|
π Playwright Run Summary
3 flaky
[chromium] βΊ hmr.spec.ts:44:3 βΊ should update frontmatter correctly ββββββββββββββββββββββββββββ
[chromium] βΊ hmr.spec.ts:68:3 βΊ should update title and frontmatter correctly after navigation β
[chromium] βΊ imports/conditional-exports.spec.ts:4:1 βΊ should load different files correctly βββ
66 passed (37.4s)
|
π Playwright Run Summary
66 passed (15.7s)
|
π Playwright Run Summary
1 flaky
[chromium] βΊ hmr.spec.ts:44:3 βΊ should update frontmatter correctly ββββββββββββββββββββββββββββ
68 passed (27.8s)
|
π Playwright Run Summary
66 passed (15.5s)
|
π Playwright Run Summary
69 passed (28.0s)
|
π Playwright Run Summary
66 passed (23.8s)
|
π Playwright Run Summary
69 passed (29.2s)
|
π Playwright Run Summary
66 passed (23.9s)
|
π Playwright Run Summary
69 passed (29.9s)
|
π Playwright Run Summary
66 passed (25.0s)
|
π Playwright Run Summary
69 passed (27.6s)
|
π Playwright Run Summary
66 passed (21.7s)
|
π Playwright Run Summary
69 passed (29.3s)
|
π Playwright Run Summary
66 passed (24.9s)
|
π Playwright Run Summary
69 passed (29.5s)
|
π Playwright Run Summary
66 passed (24.8s)
|
π Playwright Run Summary
69 passed (30.3s)
|
π Playwright Run Summary
66 passed (26.1s)
|
π Playwright Run Summary
69 passed (29.7s)
|
π Playwright Run Summary
66 passed (26.1s)
|
π Playwright Run Summary
69 passed (27.6s)
|
π Playwright Run Summary
66 passed (21.2s)
|
π Playwright Run Summary
69 passed (27.3s)
|
π Playwright Run Summary
66 passed (21.3s)
|
π Playwright Run Summary
69 passed (27.6s)
|
π Playwright Run Summary
66 passed (21.4s)
|
π Playwright Run Summary
69 passed (31.2s)
|
π Playwright Run Summary
66 passed (21.7s)
|
π Playwright Run Summary
69 passed (25.9s)
|
π Playwright Run Summary
66 passed (19.7s)
|
π Playwright Run Summary
69 passed (23.5s)
|
π Playwright Run Summary
66 passed (20.5s)
|
π Playwright Run Summary
1 flaky
[chromium] βΊ hmr.spec.ts:56:3 βΊ should update title correctly ββββββββββββββββββββββββββββββββββ
68 passed (25.9s)
|
π Playwright Run Summary
66 passed (15.6s)
|
π Playwright Run Summary
1 flaky
[chromium] βΊ hmr.spec.ts:68:3 βΊ should update title and frontmatter correctly after navigation β
68 passed (27.6s)
|
π Playwright Run Summary
66 passed (16.0s)
|
π Playwright Run Summary
69 passed (21.1s)
|
π Playwright Run Summary
66 passed (15.7s)
|
π Playwright Run Summary
2 flaky
[chromium] βΊ hmr.spec.ts:56:3 βΊ should update title correctly ββββββββββββββββββββββββββββββββββ
[chromium] βΊ hmr.spec.ts:68:3 βΊ should update title and frontmatter correctly after navigation β
67 passed (34.8s)
|
π Playwright Run Summary
66 passed (16.3s)
|
π Playwright Run Summary
69 passed (29.8s)
|
π Playwright Run Summary
66 passed (21.0s)
|
π Playwright Run Summary
69 passed (26.6s)
|
π Playwright Run Summary
66 passed (20.8s)
|
π Playwright Run Summary
69 passed (41.5s)
|
π Playwright Run Summary
66 passed (36.2s)
|
π Playwright Run Summary
69 passed (43.9s)
|
π Playwright Run Summary
66 passed (37.0s)
|
π Playwright Run Summary
69 passed (39.7s)
|
π Playwright Run Summary
66 passed (34.3s)
|
π Playwright Run Summary
69 passed (41.5s)
|
π Playwright Run Summary
66 passed (34.3s)
|
π Playwright Run Summary
69 passed (30.4s)
|
π Playwright Run Summary
66 passed (23.7s)
|
π Playwright Run Summary
69 passed (32.0s)
|
π Playwright Run Summary
66 passed (23.2s)
|
π Playwright Run Summary
69 passed (43.5s)
|
π Playwright Run Summary
66 passed (34.6s)
|
π Playwright Run Summary
69 passed (40.0s)
|
π Playwright Run Summary
66 passed (34.5s)
|