From b61cb0fd1c0b7bde50c2a71520aa9ed9c6535b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Cailly?= Date: Tue, 24 Sep 2024 10:21:15 +0200 Subject: [PATCH] fix: E2E Tests --- src/Entity.php | 2 +- .../e2e/form/destination_config_fields/entity.cy.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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();