Open
Description
Description
The has
CSS selecter selects the parent of an element that complies to a certain CSS selector. This would be incredibly useful for tests.
https://developer.mozilla.org/en-US/docs/Web/CSS/:has
Example
$tableRowContainingEntity = $table->filter("tr:has(td:contains(\"{$entity->geTitle()}\"))");
self::assertNotEmpty($tableRowContainingEntity);
$secondCell = $tableRowContainingEntity->filter(':nth-child(1)');
self::assertEquals($entity->getDescription(), $secondCell->text());