Skip to content

Commit

Permalink
chore(deps): manually update puppeteer + @vitest/eslint-plugin (#12706)
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 authored Jan 14, 2025
1 parent f399dd3 commit c950b4c
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 58 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"esbuild-plugin-polyfill-node": "^0.3.0",
"eslint": "^9.18.0",
"eslint-plugin-import-x": "^4.6.1",
"@vitest/eslint-plugin": "^1.1.20",
"@vitest/eslint-plugin": "^1.1.25",
"estree-walker": "catalog:",
"jsdom": "^25.0.1",
"lint-staged": "^15.3.0",
Expand All @@ -95,7 +95,7 @@
"prettier": "^3.4.2",
"pretty-bytes": "^6.1.1",
"pug": "^3.0.3",
"puppeteer": "~23.3.0",
"puppeteer": "~23.11.1",
"rimraf": "^6.0.1",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
Expand Down
5 changes: 5 additions & 0 deletions packages/vue/__tests__/e2e/todomvc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('e2e: todomvc', () => {
classList,
enterValue,
clearValue,
timeout,
} = setupPuppeteer()

async function removeItemAt(n: number) {
Expand Down Expand Up @@ -101,6 +102,7 @@ describe('e2e: todomvc', () => {

// active filter
await click('.filters li:nth-child(2) a')
await timeout(1)
expect(await count('.todo')).toBe(1)
expect(await count('.todo.completed')).toBe(0)
// add item with filter active
Expand All @@ -109,6 +111,7 @@ describe('e2e: todomvc', () => {

// completed filter
await click('.filters li:nth-child(3) a')
await timeout(1)
expect(await count('.todo')).toBe(2)
expect(await count('.todo.completed')).toBe(2)

Expand All @@ -128,12 +131,14 @@ describe('e2e: todomvc', () => {
await click('.todo .toggle')
expect(await count('.todo')).toBe(1)
await click('.filters li:nth-child(2) a')
await timeout(1)
expect(await count('.todo')).toBe(3)
await click('.todo .toggle')
expect(await count('.todo')).toBe(2)

// editing triggered by blur
await click('.filters li:nth-child(1) a')
await timeout(1)
await click('.todo:nth-child(1) label', { clickCount: 2 })
expect(await count('.todo.editing')).toBe(1)
expect(await isFocused('.todo:nth-child(1) .edit')).toBe(true)
Expand Down
123 changes: 67 additions & 56 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c950b4c

Please sign in to comment.