Skip to content
Snippets Groups Projects
Verified Commit c6cf8cb7 authored by Alexandre Dias's avatar Alexandre Dias
Browse files

ISAICP-9399: Remove step defenition.

parent 0eba6675
No related branches found
No related tags found
1 merge request!209Release 2.2.0
......@@ -247,22 +247,4 @@ public function iSeeTheEventShowingInTheCalendar(string $event): void {
}
}
/**
* Verifies that a specific event is visible in the calendar.
*
* @param string $event
* The name of the event.
*
* @Then I not see the :event showing in the Calendar
*/
public function iNotSeeTheEventShowingInTheCalendar(string $event): void {
$page = $this->getSession()->getPage();
$elements = $page->findAll('css', '.calendar-view-day');
$eventElement = current(array_filter($elements, fn($element) => str_contains($element->getText(), $event))) || NULL;
if ($eventElement) {
throw new \Exception(sprintf("The event '%s' was found in the calendar, but it should NOT be visible.", $event));
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment