Hello,
Did you ever find a solution to this? I am facing the exact same issue, and cannot find out how to make it work properly...
Summer Sale! All accounts are 50% off this week.
I have a simple feature test that looks something like this.
/** @test */
public function user_likes_page_shows_your_when_user_authenticated()
{
$user = User::factory()->create();
$this
->actingAs($user)
->get(route('likes', ['user' => $user]))
->assertStatus(200)
->assertSeeText('Your liked items');
}
I'm using a Blade component to generate a portion of this view and so my Your liked items text outputs like this in the content.
\n
\n
Your\n
liked items\n
\n
\n
I've tried numerous variations of assertSeeText and assertSee in order to check that my output contains Your liked items but have yet to be able to find the right combination.
How can I assert that my view simply contains Your liked items regardless of it having newlines?
Please or to participate in this conversation.