diff --git a/src/AnonymousContext.php b/src/AnonymousContext.php index c5f86e0..4b01d1a 100644 --- a/src/AnonymousContext.php +++ b/src/AnonymousContext.php @@ -439,6 +439,7 @@ public function viewEntityWithIndex($entity_type, $index) { /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */ $entity = $this->entities[$entity_type][$index]; + $entityTypeManager->getViewBuilder($entity_type)->resetCache(); $this->visitPath($entity->toUrl()->toString()); }