From 41ccf77d7d373ede69aedab299373915df7e5caa Mon Sep 17 00:00:00 2001 From: Christian Keuerleber Date: Wed, 10 Apr 2024 17:02:32 +0200 Subject: [PATCH] TASK: add step to check for non existing text in element --- Classes/ActorTraits/Checks.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Classes/ActorTraits/Checks.php b/Classes/ActorTraits/Checks.php index 0b3b7df..b378fd9 100644 --- a/Classes/ActorTraits/Checks.php +++ b/Classes/ActorTraits/Checks.php @@ -150,6 +150,16 @@ public function iShouldSeeTextInElement(string $text, string $selector): void $this->see($text, $selector); } + /** + * @Then I should not see :text in :element element + * @param string $text + * @param string $selector + */ + public function iShouldNotSeeTextInElement(string $text, string $selector): void + { + $this->dontSee($text, $selector); + } + /** * @Then I should see at least :number :selector elements * @param string $number