diff --git a/integration/src/browser/add-a-request-to-a-community.spec.ts b/integration/src/browser/add-a-request-to-a-community.spec.ts index d3bc718f..85714f76 100644 --- a/integration/src/browser/add-a-request-to-a-community.spec.ts +++ b/integration/src/browser/add-a-request-to-a-community.spec.ts @@ -3,7 +3,7 @@ import { screenshot } from './utils'; test.asACommunityMember( 'can add a request to a community', - async ({ community, page, preprint }, { fixme }) => { + async ({ community, page, preprint }) => { await page.goto(`/communities/${community.slug}`); const addRequestButton = page.locator('button:has-text("Add Request")'); @@ -11,8 +11,6 @@ test.asACommunityMember( '.MuiPaper-root:has-text("Preprints with PREreviews or requests for PREreviews")', ); - fixme(true, '"Add Request" button is not shown for members'); - await expect(addRequestButton).toBeVisible(); expect(await screenshot(preprints)).toMatchSnapshot( 'empty-with-button.png', diff --git a/integration/src/browser/add-a-review-to-a-community.spec.ts b/integration/src/browser/add-a-review-to-a-community.spec.ts index ec332c0c..ec5794ad 100644 --- a/integration/src/browser/add-a-review-to-a-community.spec.ts +++ b/integration/src/browser/add-a-review-to-a-community.spec.ts @@ -3,7 +3,7 @@ import { screenshot } from './utils'; test.asACommunityMember( 'can add a review to a community', - async ({ community, page, preprint }, { fixme }) => { + async ({ community, page, preprint }) => { await page.goto(`/communities/${community.slug}`); const addReviewButton = page.locator('button:has-text("Add PREreview")'); @@ -11,8 +11,6 @@ test.asACommunityMember( '.MuiPaper-root:has-text("Preprints with PREreviews")', ); - fixme(true, '"Add PREreview" button is not shown for members'); - await expect(addReviewButton).toBeVisible(); expect(await screenshot(preprints)).toMatchSnapshot( 'empty-with-button.png', diff --git a/src/backend/controllers/user.js b/src/backend/controllers/user.js index 3e02ccee..bc09b70f 100644 --- a/src/backend/controllers/user.js +++ b/src/backend/controllers/user.js @@ -77,6 +77,7 @@ export default function controller(users, contacts, keys, thisUser) { 'contacts', 'keys', 'defaultPersona.badges', + 'defaultPersona.communities', ]); } catch (err) { log.debug(err);