Uh oh!
There was an error while loading. Please reload this page.
feat: toHaveURL predicate matcher - #34413
Merged
Adam Gastineau (agg23) merged 16 commits intoJan 24, 2025
Merged
Conversation
Adam Gastineau (agg23)
requested review from
Simon Knott (Skn0tt) and Pavel Feldman (pavelfeldman)January 21, 2025 20:30
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
Pavel Feldman (pavelfeldman)
approved these changes
Jan 23, 2025
| } else if (expression === 'to.have.title') { | ||
| received = this.document.title; | ||
| } else if (expression === 'to.have.url') { | ||
| received = this.document.location.href; |
There was a problem hiding this comment.
(Side note, ports are now on their own with this)
This comment has been minimized.
This comment has been minimized.
Contributor
Test results for "tests 1"2 failed 20 flaky37638 passed, 648 skipped Merge workflow run. |
This was referenced Apr 25, 2026
3 tasks
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 freeto 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.
Addresses the requested functionality of #32708 in a generic way, enabling the user to match on the native rich URL object. This enables patterns for checking for search params, hostnames, and other specific fields of the entire URL.
Care was taken to ensure rich error messages are provided. Examples:
String match failure
Predicate failure
Predicate
.notfailureInvalid argument failure