From 9535349ac67f0aab10ac8094db7347828748b49b Mon Sep 17 00:00:00 2001 From: Barbara Honhoff Date: Thu, 14 Sep 2023 13:33:00 +0200 Subject: [PATCH] Fix end-to-end test --- apps/researcher/cypress/e2e/community.cy.ts | 2 +- .../src/app/[locale]/communities/community-card.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/researcher/cypress/e2e/community.cy.ts b/apps/researcher/cypress/e2e/community.cy.ts index 9aec91b8a..dd453d61d 100644 --- a/apps/researcher/cypress/e2e/community.cy.ts +++ b/apps/researcher/cypress/e2e/community.cy.ts @@ -19,7 +19,7 @@ describe('Community details page', () => { .first() .then($name => { // Navigate to the first community details page. - cy.getBySel('community-item-name').first().find('a').click(); + cy.getBySel('community-item-name').first().parentsUntil('a').click(); // Wait for the page to load. cy.location('pathname', {timeout: 60000}).should( 'include', diff --git a/apps/researcher/src/app/[locale]/communities/community-card.tsx b/apps/researcher/src/app/[locale]/communities/community-card.tsx index 9241377c4..76fc820cb 100644 --- a/apps/researcher/src/app/[locale]/communities/community-card.tsx +++ b/apps/researcher/src/app/[locale]/communities/community-card.tsx @@ -30,7 +30,6 @@ export default function CommunityCard({community, locale}: CommunityCardProps) { return (
@@ -46,7 +45,12 @@ export default function CommunityCard({community, locale}: CommunityCardProps) {

{t.rich('communityName', { name: () => ( - {community.name} + + {community.name} + ), })}