Skip to content

test(web-integration): expand input E2E coverage - #2953

Draft
quanruzhuoxiu wants to merge 22 commits into
mainfrom
test/input-e2e-coverage
Draft

test(web-integration): expand input E2E coverage#2953
quanruzhuoxiu wants to merge 22 commits into
mainfrom
test/input-e2e-coverage

Conversation

@quanruzhuoxiu

@quanruzhuoxiu quanruzhuoxiu commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a shared local input fixture for browser-backed AI tests
  • add seven Puppeteer and seven Playwright input E2E cases
  • require every test case to finish with aiAssert, while retaining exact DOM assertions for diagnosis
  • route deterministic input actions through the Agent ActionSpace so reports show Locate, Input parameters, before/after screenshots, and Assert in sequence
  • keep the public aiInput path as a distinct test that visibly changes the initial value

Coverage

  • replace, clear, and caret-preserving typeOnly modes
  • text inputs, textareas, and contenteditable elements
  • beforeinput, input, and change event delivery
  • same-origin and cross-origin iframe input and clearing
  • controlled inputs that replace their DOM node after clearing
  • the public aiInput path on both Puppeteer and Playwright
  • report evidence for every input action instead of only the final state

This is a test-only stacked PR targeting fix/playwright-cut-shortcut so the broader input coverage remains separate from #2938.

Validation

  • pnpm run lint
  • pnpm run type-check:tests
  • PUPPETEER_EXECUTABLE_PATH=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome pnpm exec nx test @midscene/web (447 passed, 1 skipped)
  • GitHub Actions: all five PR checks passed, including AI unit tests and Playwright E2E/report jobs
  • CI reports confirmed seven passed Puppeteer cases and seven passed Playwright cases
  • generated an input-only Playwright report containing seven selectable passed groups and 63 referenced screenshots
  • opened all curated reports in Chrome and verified that Locate, Input, Assert, input parameters, UI Context screenshots, and after-calling screenshots render without page, console, or resource errors

…ortcut

# Conflicts:
#	packages/computer/tests/ai/chrome-extension-settings.test.ts
@quanru
quanru force-pushed the fix/playwright-cut-shortcut branch 2 times, most recently from c59890c to 31fdd7a Compare August 12, 2026 07:51
Base automatically changed from fix/playwright-cut-shortcut to main August 12, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant