Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Native Test AI nodes currently require the native AI implementation for every execution. This adds optional per-node Replay scripts: an
aiActcan click a strict target and verify its receipt, while Test continues to own setup, cancellation, Case retries, result conversion and the integrated HTML report.The new
@midscene/replayruntime provides ready/run/done steps, deterministic Web actions, explicit locator fallback, popup following and Jev visual checks. YAML and SDK execution supportauto,strictandoff; returned assertion failures, invalid results, cancellation and terminal resource errors never trigger AI fallback. Core/Shared/Web changes supply deterministic dispatch, explicit readiness, Jev image mapping and reliable drag cleanup. Jev uses one internal judgment contract and events use the instance-levelonEventcallback.This is the first of three planned PRs. Browser recording and authoring/verification commands are outside this PR. The package has bilingual runtime documentation, browser regression coverage and an independent YAML → Replay → native-report integration test.
Validation
Passed in the isolated PR worktree based on
origin/main:pnpm install --frozen-lockfile --ignore-scriptspnpm run lintpnpm run check:referencespnpm run check-dependency-versionpnpm exec nx build <project> --excludeTaskDependencies --skip-nx-cache --output-style=staticfor@midscene/shared,@midscene/core,@midscene/web,@midscene/testand@midscene/replay.pnpm exec nx test @midscene/replay --output-style=static: 50 tests passed.pnpm exec nx test @midscene/test --output-style=static: 743 tests passed.pnpm exec nx test @midscene/core --include='tests/unit-test/{agent-action-readiness,agent-custom-model,jev,task-executor-custom-planning}.test.ts' --output-style=static: 119 tests passed.pnpm exec nx test @midscene/shared --include='tests/unit-test/{env/modle-config-manager,extractor-visibility}.test.ts' --output-style=static: 33 tests passed.pnpm exec nx test @midscene/web --include='tests/unit-test/web-page-drag.test.ts' --output-style=static: 2 tests passed.node /private/tmp/replay-pr1-package-smoke.mjs): packed and installed six workspace tarballs, compiled a strict TypeScript runtime consumer, ranpnpm exec midscene-test case.yaml --replay=strict, and verified the generated native HTML report.Browser tests used the locally installed Chromium via
PUPPETEER_EXECUTABLE_PATH; CI installs its own browser. Jev tests mock model responses; no live-model validation or full monorepo test run was performed.