Skip to content

Commit

Permalink
fix: E2E Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ccailly committed Sep 24, 2024
1 parent 984d637 commit b61cb0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -3088,7 +3088,7 @@ public static function getEntitySelectorTree(): array
if (isset($entity['tree']) && count($entity['tree']) > 0) {
$entity['folder'] = true;

$entity['title'] .= "<a href='$base_path?active_entity={$entities_id}&is_recursive=1' aria-label='" . __s('+ sub-entities') . "'>
$entity['title'] .= "<a href='$base_path?active_entity={$entities_id}&is_recursive=1'>
<i class='fas fa-angle-double-down ms-1' data-bs-toggle='tooltip' data-bs-placement='right' title='" . __s('+ sub-entities') . "'></i>
</a>";

Expand Down
8 changes: 4 additions & 4 deletions tests/cypress/e2e/form/destination_config_fields/entity.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b61cb0f

Please sign in to comment.