Skip to content

Commit

Permalink
Formated code with npm run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Spandan Datta authored and Spandan Datta committed Apr 23, 2024
1 parent 72f32ad commit a1b46c6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
16 changes: 8 additions & 8 deletions apps/potlock/widget/Pots/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,13 @@ const Tag = (props) => (
: {}),
}}
/>
);


return (
<Card href={props.hrefWithParams(`?tab=pot&potId=${potId}`)}
data-testid={applicationOpen ? "active-pot" : "inactive-pot"}>
);

return (
<Card
href={props.hrefWithParams(`?tab=pot&potId=${potId}`)}
data-testid={applicationOpen ? "active-pot" : "inactive-pot"}
>
<CardSection>
<Title>{title}</Title>
<Description>
Expand All @@ -286,5 +287,4 @@ const Tag = (props) => (
{tags.map((tag) => (tag.visibility ? <Tag {...tag} key={tag.text} /> : ""))}
</CardSection>
</Card>
);

);
13 changes: 5 additions & 8 deletions playwright-tests/tests/pots.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,16 @@ test("clicking learn more button should...", async ({ page }) => {

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

const activePots = page.locator('[data-testid="active-pot"]');


await activePots.first().waitFor();



await activePots.first().waitFor();

const count = await activePots.count();
for (let i = 0; i < count; i++) {
await expect(activePots.nth(i)).toBeVisible();
}
});

});

test("should show completed pots", async ({ page }) => {
// TODO:
Expand Down

0 comments on commit a1b46c6

Please sign in to comment.