Skip to content

Port sdk-types blur type checks (tester-army/e2e#1919) - #2072

Merged
kblok merged 3 commits into
mainfrom
fix/2053-sdk-types-blur-checks
Nov 22, 2026
Merged

kblok merged 3 commits into
mainfrom
fix/2053-sdk-types-blur-checks

Conversation

@kblok

@kblok kblok commented Nov 22, 2026

Copy link
Copy Markdown
Member

Adds reflection checks to SdkTypesTests for the Locator.BlurAsync signature and for every LocatorAction kind being listed in EngineActionKinds.KnownLocator. This keeps the public API from drifting. Upstream checks the same things with its type checker.

Closes #2053

Upstream parity

Verdict: faithful for what C# can express; one line partly ported. Upstream is e2e-inc/e2e#1919, tests/types/sdk-types.ts. No src/ change, so there are no new symbols.

  • blurTarget.blur satisfies (options?: ActionOptions) => Promise<void>: asserts BlurAsync returns Task and takes ActionOptions and CancellationToken.
  • @ts-expect-error for blur('input'): asserts no BlurAsync(string, ...) overload exists.
  • LocatorActionKind not in KNOWN_LOCATOR_ACTION_KINDS is an error: every LocatorAction subtype is mapped with EngineActionKinds.Of and checked against EngineActionKinds.KnownLocator.

Upstream tests and local match

Upstream Local
tests/types/sdk-types.ts blur lines (type checks, no it) SdkTypes/SdkTypesTests.cs Partial_blur_takes_action_options_and_every_locator_action_kind_is_known

The test carries the Partial_ prefix like its neighbours, because upstream's checks are compile-time.

Not ported

Nothing was left out. The three checks above all have a C# counterpart.

Local run: SdkTypesTests 9/9 passed on net10.0. Real-model tests were skipped because this changes only a test.

Claude session: https://claude.ai/code/session_01Ls2e22SGkku1xbt3YWUNFr


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls2e22SGkku1xbt3YWUNFr
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 38c8011 and 585a254.

Files selected for processing: 1

  • tests/E2E.Tests/SdkTypes/SdkTypesTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls2e22SGkku1xbt3YWUNFr
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls2e22SGkku1xbt3YWUNFr
@kblok
kblok merged commit 25c7495 into main Nov 22, 2026
7 of 8 checks passed
@kblok
kblok deleted the fix/2053-sdk-types-blur-checks branch November 22, 2026 12:37
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.

Port sdk-types blur type checks (tester-army/e2e#1919)

2 participants