-
Notifications
You must be signed in to change notification settings - Fork 4.4k
chore: hide locator(':root') in Steps for toHaveTitle/URL #36213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
52f8658
to
8ae5354
Compare
This comment has been minimized.
This comment has been minimized.
c291c5b
to
5481c54
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5481c54
to
134fcce
Compare
This comment has been minimized.
This comment has been minimized.
let header = state.utils.matcherHint(matcherName, expression, actual, matcherOptions).replace(/ \/\/ deep equality/, '') + '\n\n'; | ||
if (timeout) | ||
header = colors.red(`Timed out ${timeout}ms waiting for `) + header; | ||
if (locator) | ||
header += `Locator: ${String(locator)}\n`; | ||
if (locatorOrPage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see this new suffix in any tests, and so I think we don't need it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We test it here:
Locator: locator('#node') |
|
||
export async function toMatchText( | ||
this: ExpectMatcherState, | ||
matcherName: string, | ||
receiver: Locator, | ||
receiver: Locator | Page, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should pass receiverLabel: 'page'
whenever we pass a page, or better yet auto-detect it here? Perhaps default to receiverType.toLowerCase()
?
134fcce
to
60314ca
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
c3aaeac
to
2e32732
Compare
Test results for "tests 1"6 flaky39401 passed, 822 skipped Merge workflow run. |
Before it looked like:
Now it looks like: