Skip to content

Commit

Permalink
test: fix PrismicRichText tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Jan 15, 2025
1 parent 795e670 commit 7e4e503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/PrismicRichText.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,14 @@ test.describe("hyperlink", () => {
const scope = page.getByTestId("hyperlink");
const output = scope.getByTestId("custom-internal");
const component = output.getByTestId("internal");
expect(component).toHaveCount(1);
await expect(component).toHaveCount(1);
});

test("renders externalComponent when link is external", async ({ page }) => {
const scope = page.getByTestId("hyperlink");
const output = scope.getByTestId("custom-external");
const component = output.getByTestId("external");
expect(component).toHaveCount(1);
await expect(component).toHaveCount(1);
});
});

Expand Down

0 comments on commit 7e4e503

Please sign in to comment.