Repository navigation
Port sdk-types blur type checks (tester-army/e2e#1919) - #2072
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls2e22SGkku1xbt3YWUNFr
Contributor
|
Warning Review limit reachedYou'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. View limit details
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. |
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
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.
Adds reflection checks to
SdkTypesTestsfor theLocator.BlurAsyncsignature and for everyLocatorActionkind being listed inEngineActionKinds.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. Nosrc/change, so there are no new symbols.blurTarget.blur satisfies (options?: ActionOptions) => Promise<void>: assertsBlurAsyncreturnsTaskand takesActionOptionsandCancellationToken.@ts-expect-errorforblur('input'): asserts noBlurAsync(string, ...)overload exists.LocatorActionKindnot inKNOWN_LOCATOR_ACTION_KINDSis an error: everyLocatorActionsubtype is mapped withEngineActionKinds.Ofand checked againstEngineActionKinds.KnownLocator.Upstream tests and local match
tests/types/sdk-types.tsblur lines (type checks, noit)SdkTypes/SdkTypesTests.csPartial_blur_takes_action_options_and_every_locator_action_kind_is_knownThe 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:
SdkTypesTests9/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