Skip to content

Commit

Permalink
fix test card.getText -> card.getName
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrasinskis committed May 24, 2024
1 parent 5d65598 commit 8e5506c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe("SelectUniverseList", () => {
const cardPos = await po.getSelectUniverseCardPos();
// +1 for IC and +1 for "Actionable Proposals" entry
expect(cardPos.length).toEqual(projects.length + 2);
expect(await cardPos[0].getText()).toEqual("Actionable Proposals");
expect(await cardPos[0].getName()).toEqual("Actionable Proposals");
expect(await po.hasSeparator()).toEqual(true);
});

Expand All @@ -126,7 +126,7 @@ describe("SelectUniverseList", () => {

const po = renderComponent();
const cardPos = await po.getSelectUniverseCardPos();
const titles = await Promise.all(cardPos.map((card) => card.getText()));
const titles = await Promise.all(cardPos.map((card) => card.getName()));
// +1 for IC
expect(cardPos.length).toEqual(projects.length + 1);
expect(titles.includes("Actionable Proposals")).toEqual(false);
Expand Down

0 comments on commit 8e5506c

Please sign in to comment.