Skip to content

Commit

Permalink
test(integration): test for community members rather than moderators
Browse files Browse the repository at this point in the history
I've realised that the intention is to allow any community member to add content to a community rather than just moderators.

Refs #429
  • Loading branch information
thewilkybarkid committed Dec 13, 2021
1 parent ed18619 commit 9e8a635
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions integration/src/browser/add-a-request-to-a-community.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from './test';
import { screenshot } from './utils';

test.asACommunityModerator(
test.asACommunityMember(
'can add a request to a community',
async ({ community, page, preprint }, { fixme }) => {
await page.goto(`/communities/${community.slug}`);
Expand All @@ -11,7 +11,7 @@ test.asACommunityModerator(
'.MuiPaper-root:has-text("Preprints with PREreviews or requests for PREreviews")',
);

fixme(true, '"Add Request" button is not shown for moderators');
fixme(true, '"Add Request" button is not shown for members');

await expect(addRequestButton).toBeVisible();
expect(await screenshot(preprints)).toMatchSnapshot(
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions integration/src/browser/add-a-review-to-a-community.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from './test';
import { screenshot } from './utils';

test.asACommunityModerator(
test.asACommunityMember(
'can add a review to a community',
async ({ community, page, preprint }, { fixme }) => {
await page.goto(`/communities/${community.slug}`);
Expand All @@ -11,7 +11,7 @@ test.asACommunityModerator(
'.MuiPaper-root:has-text("Preprints with PREreviews")',
);

fixme(true, '"Add PREreview" button is not shown for moderators');
fixme(true, '"Add PREreview" button is not shown for members');

await expect(addReviewButton).toBeVisible();
expect(await screenshot(preprints)).toMatchSnapshot(
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9e8a635

Please sign in to comment.