From f93cd7eb3b1ce813dc11417261a608e512c72f48 Mon Sep 17 00:00:00 2001 From: Quentin Renard Date: Mon, 14 Oct 2024 22:57:00 +0200 Subject: [PATCH] Fix flaky test due to encoded quotes in asserted html --- tests/integration/Capsules/CapsulesTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/Capsules/CapsulesTest.php b/tests/integration/Capsules/CapsulesTest.php index 5830b6ea3..cb6420d72 100644 --- a/tests/integration/Capsules/CapsulesTest.php +++ b/tests/integration/Capsules/CapsulesTest.php @@ -224,7 +224,7 @@ public function testCanSeeModelInListing() $this->assertSee('Title'); - $this->assertSee($model->title); + $this->assertSee(htmlspecialchars($model->title, ENT_QUOTES, 'UTF-8')); } public function testCanPublishModel()