-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Bug: assertSee() can not assert title tag. #3984
Comments
I'm not familiar with |
I don't know why it searches only within the |
The first example that passes uses simple |
@paulbalandan is right here.
so I would think the
However, My personal opinion: Options that I see: |
:D three minutes too late. |
😅 I'm not a linguistic expert but
doesn't sound to me like the suggestion of a |
No worries, neither am I. Just the way I read those docs. I'm in for other opinions :) |
My English is not good. :-) The User Guide says:
I read it as the body of the response object, or the HTTP response body (not in the response header). |
Okay, just leave it then :-) |
Hi, do you mind share how you get $result? |
Describe the bug
assertSee() can not assert
title
tag.$result->assertSee('<title>CodeIgniter Tutorial</title>');
-> Pass$result->assertSee('CodeIgniter Tutorial', 'title');
-> FailCodeIgniter 4 version
4.0.4
Affected module(s)
Tests
Expected behavior, and steps to reproduce if appropriate
assertSee('CodeIgniter Tutorial', 'title');
should pass when the page has thetitle
tag.Context
The text was updated successfully, but these errors were encountered: