Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions packages/review/app/src/review-find-controller.browser.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,15 @@ it("orders duplicate editors with MDX and wraps navigation", async () => {
"::highlight(review-find-match)",
).backgroundColor,
).toBe("rgb(10, 20, 30)");
expect(
getComputedStyle(
container.querySelector("article")!,
"::highlight(review-find-match-active)",
).backgroundColor,
).toBe("rgb(40, 50, 60)");
// The active match is highlighted on the next frame.
await vi.waitFor(() => {
expect(
getComputedStyle(
container.querySelector("article")!,
"::highlight(review-find-match-active)",
).backgroundColor,
).toBe("rgb(40, 50, 60)");
});
// The shell is the widget's containing block.
expect(
container.querySelector(".review-find-widget")?.parentElement,
Expand Down
Loading