diff --git a/src/Entity.php b/src/Entity.php
index 597031046c2..3d814b4f582 100644
--- a/src/Entity.php
+++ b/src/Entity.php
@@ -3088,7 +3088,7 @@ public static function getEntitySelectorTree(): array
if (isset($entity['tree']) && count($entity['tree']) > 0) {
$entity['folder'] = true;
- $entity['title'] .= "
+ $entity['title'] .= "
";
diff --git a/tests/cypress/e2e/form/destination_config_fields/entity.cy.js b/tests/cypress/e2e/form/destination_config_fields/entity.cy.js
index eb9c3a19387..1936948d134 100644
--- a/tests/cypress/e2e/form/destination_config_fields/entity.cy.js
+++ b/tests/cypress/e2e/form/destination_config_fields/entity.cy.js
@@ -109,10 +109,10 @@ describe('Entity configuration', () => {
});
});
- cy.findByRole('link', { 'name': "User menu" }).click();
- cy.findByRole('link', { 'name': "Select the desired entity" }).click();
- cy.findByRole('treegrid', { 'name': "Entity tree" }).as('entities');
- cy.get('@entities').findByRole('link', { 'name': "+ sub-entities" }).click();
+ cy.openEntitySelector();
+ cy.findByRole('gridcell', {'name': "Root entity > E2ETestEntity"})
+ .findByTitle('+ sub-entities')
+ .click();
// Go to preview
cy.findByRole('tab', { 'name': "Form" }).click();