Skip to content

Commit

Permalink
Formatted Completed pot test
Browse files Browse the repository at this point in the history
  • Loading branch information
Spandan Datta authored and Spandan Datta committed May 13, 2024
1 parent 1b6767a commit f6919b5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
34 changes: 16 additions & 18 deletions apps/potlock/widget/Pots/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,25 +240,24 @@ const tags = [
];

const Tag = (props) => (
<Widget
src={`${ownerId}/widget/Pots.Tag`}
props={{
...props,
...(props.preElementsProps
? {
preElements: (
<Widget
src={`${ownerId}/widget/Components.Indicator`}
props={props.preElementsProps}
/>
),
}
: {}),
}}
/>
<Widget
src={`${ownerId}/widget/Pots.Tag`}
props={{
...props,
...(props.preElementsProps
? {
preElements: (
<Widget
src={`${ownerId}/widget/Components.Indicator`}
props={props.preElementsProps}
/>
),
}
: {}),
}}
/>
);


return (
<Card
href={props.hrefWithParams(`?tab=pot&potId=${potId}`)}
Expand Down Expand Up @@ -289,4 +288,3 @@ return (
</CardSection>
</Card>
);

2 changes: 0 additions & 2 deletions playwright-tests/tests/pots.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ test("should show active pots", async ({ page }) => {
}
});


test("should show completed pots", async ({ page }) => {
await page.goto(`${ROOT_SRC}?tab=pots`);

Expand All @@ -77,7 +76,6 @@ test("should show completed pots", async ({ page }) => {
for (let i = 0; i < count; i++) {
await expect(completedPots.nth(i)).toBeVisible();
}

});

test("should sort pots", async ({ page }) => {
Expand Down

0 comments on commit f6919b5

Please sign in to comment.