Skip to content

Commit af96251

Browse files
fix test
1 parent 7ac4d8e commit af96251

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

frontends/main/src/app-pages/DashboardPage/OrganizationContent.test.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,10 @@ describe("OrganizationContent", () => {
754754
},
755755
b2b_contract_id: contracts[0].id,
756756
b2b_organization_id: contracts[0].organization,
757-
grades: [], // No grades = enrolled but not completed
757+
certificate: {
758+
uuid: faker.string.uuid(),
759+
link: faker.internet.url(),
760+
},
758761
}),
759762
]
760763
// Override enrollments for this test
@@ -781,7 +784,7 @@ describe("OrganizationContent", () => {
781784

782785
// First card should show enrolled status
783786
const firstCardStatus = within(cards[0]).getByTestId("enrollment-status")
784-
expect(firstCardStatus).toHaveTextContent(/^Enrolled$/)
787+
expect(firstCardStatus).toHaveTextContent(/^Completed$/)
785788

786789
// Remaining cards should show not enrolled
787790
for (let i = 1; i < cards.length; i++) {

0 commit comments

Comments
 (0)