Repository navigation
Fail web setInputFiles on a missing path as INVALID_ARGUMENT before clicking (tester-army/e2e#2039) - #2188
Merged
Conversation
…licking (e2e-inc/e2e#2039) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ls2e22HJFq5sGkskmyeXiz
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 48 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. |
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.
Web
setInputFilesnow stats every path first and throwsINVALID_ARGUMENT(a test error) before anything is clicked, for a path that does not exist or sits under a directory the runner cannot search. Before, a missing path surfaced late as an engine failure, after a chooser-opening button had already been clicked.Closes #2171
Upstream parity
Port of e2e-inc/e2e@6fdb1c2 (#2039). Verdict: complete, with the justified exceptions below.
statPath(support.ts) ->WebSupport.StatPath;uploadFilescheck ->WebEngine.UploadFilesAsync;requireFilein route-options.ts now uses the shared helper ->RouteOptions.setInputFiles path does not exist or is under a directory the runner cannot search: <runtime message>. The runtime text is .NET's, not Node's ENOENT text.Screen.csXML doc,skills/e2e-dotnet/SKILL.md,references/writing-tests.md,api/E2E/Locator.md(edited by hand, asnpm run apineeds net11, which this environment lacks)..changesethere (the port has none).UploadPage.TryLockDirectory,UnlockDirectory,MissingPaths,StatFailure(test helpers).StatPathreturnsException?plus anout isFileinstead ofStats | Error.Upstream tests and local match
fails a path that does not exist ...(element and locator targets)ThroughTheElementTargetTests/ThroughTheLocatorTargetTestsFails_a_path_that_does_not_exist_as_INVALID_ARGUMENT_before_it_touches_a_file_input_or_a_button_over_a_hidden_inputfails a path under a directory it may not search ...Fails_a_path_under_a_directory_it_may_not_search_as_INVALID_ARGUMENTin both classesDispatchLocatorActionTestsalready uses a real file (UploadPage.AvatarFile)Not ported / caveats
UploadActions,DispatchLocatorActionandRoute*tests (212 passed) with net10 only.Generated by Claude Code