refactor: upgrade eslint and fix lint and type errors (#1600) #486
Annotations
4 errors and 4 notices
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
|
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
|
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
|
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
|
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)
|
|
|
|
This job succeeded
Loading