From ecb295fdf7da1a86ef2d10e94e8598da04ea941a Mon Sep 17 00:00:00 2001 From: Iosif Chatzimichail Date: Wed, 28 Feb 2024 23:52:37 +0200 Subject: [PATCH] Some extra testing for peace of mind --- tests/Feature/LfCheckboxFilterTest.php | 3 ++- tests/Feature/LfRadioFilterTest.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Feature/LfCheckboxFilterTest.php b/tests/Feature/LfCheckboxFilterTest.php index 88956f5..7fc2734 100644 --- a/tests/Feature/LfCheckboxFilterTest.php +++ b/tests/Feature/LfCheckboxFilterTest.php @@ -236,7 +236,8 @@ public function it_calculates_the_count_for_each_entry() ->dispatch('params-updated', ['item_options:is' => 'option1']) ->assertViewHas('statamic_field', function ($statamic_field) { return $statamic_field['counts'] === ['option1' => 2, 'option2' => 1, 'option3' => 0]; - }); + }) + ->assertSeeHtml('(2)'); } protected function makeEntry($collection, $slug) diff --git a/tests/Feature/LfRadioFilterTest.php b/tests/Feature/LfRadioFilterTest.php index 026603e..a894c16 100644 --- a/tests/Feature/LfRadioFilterTest.php +++ b/tests/Feature/LfRadioFilterTest.php @@ -151,7 +151,8 @@ public function it_calculates_the_count_for_each_entry() ->dispatch('params-updated', ['item_options:is' => 'option1']) ->assertViewHas('statamic_field', function ($statamic_field) { return $statamic_field['counts'] === ['option1' => 2, 'option2' => 1, 'option3' => 0]; - }); + }) + ->assertSeeHtml('(2)'); }