Skip to content

Commit

Permalink
Merge pull request #155 from UoaWDCC/feat/strapi-fields
Browse files Browse the repository at this point in the history
Feat/strapi fields
  • Loading branch information
gmat224 authored Dec 25, 2024
2 parents c3d15f8 + 19eae4b commit 47c6490
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions web/__test__/screens/ExecScreen.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ const previousTeamsMock = {
attributes: {
Name: "John Doe",
Role: "President",
Year: "2023",
Year: "2022",
},
},
{
id: 2,
attributes: {
Name: "Janet Doe",
Role: "Executive",
Year: "2023",
Year: "2022",
},
},
],
Expand Down Expand Up @@ -168,7 +168,7 @@ describe("ExecScreen", () => {

expect(await screen.findByText("Guryash")).toBeInTheDocument();
expect(await screen.findByText("A great leader")).toBeInTheDocument();
expect(await screen.findAllByText("President")).toHaveLength(2);
expect(await screen.findAllByText("President")).toHaveLength(3);
expect(await screen.findByText("Jane Doe")).toBeInTheDocument();
expect(await screen.findByText("People")).toBeInTheDocument();
expect(await screen.findByText("An amazing executive")).toBeInTheDocument();
Expand All @@ -184,8 +184,7 @@ describe("ExecScreen", () => {
);

expect(await screen.findByText("Previous Teams")).toBeInTheDocument();
expect(await screen.findByText("2023")).toBeInTheDocument();
expect(await screen.findByText("Presidents")).toBeInTheDocument();
expect(await screen.findByText("2022")).toBeInTheDocument();
expect(await screen.findByText("John Doe")).toBeInTheDocument();
expect(await screen.findByText("Executives")).toBeInTheDocument();
expect(await screen.findByText("Janet Doe")).toBeInTheDocument();
Expand Down

0 comments on commit 47c6490

Please sign in to comment.