From d5e7a10688f9a3ee5b38bc1eed28b6779faf77d6 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Thu, 25 Jan 2024 21:25:53 -0500 Subject: [PATCH] feat!: have `assert(Not)SeeIn()` look in all matching node's text --- tests/BrowserTests.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/BrowserTests.php b/tests/BrowserTests.php index 99763f0..e1fb5b7 100644 --- a/tests/BrowserTests.php +++ b/tests/BrowserTests.php @@ -223,6 +223,18 @@ public function content_assertions(): void ; } + /** + * @test + */ + public function assert_see_in_multiple_elements(): void + { + $this->browser() + ->visit('/page1') + ->assertSeeIn('ul li', 'list 2') + ->assertNotSeeIn('ul li', 'something') + ; + } + /** * @test */