Skip to content

Commit d40ebcb

Browse files
brian033claude
andcommitted
test: update assertions to match redesigned research page
Research page no longer has a PageHero or accordion buttons — it uses static track sections. Update test expectations accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ccf8097 commit d40ebcb

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

src/app/App.test.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ describe("App routing and shared layout", () => {
3232

3333
test("renders all route-level page heroes through the shared shell", () => {
3434
const routes = [
35-
{ path: "/research", name: /research directions/i },
3635
{ path: "/publication", name: /publication archive/i },
3736
{ path: "/member", name: /lab members/i },
3837
{ path: "/blog", name: /selected reading/i },
@@ -49,18 +48,11 @@ describe("App routing and shared layout", () => {
4948
});
5049

5150
describe("Interactive modules", () => {
52-
test("toggles research detail panels with accessible buttons", async () => {
53-
const user = userEvent.setup();
51+
test("renders research track sections with detail panels", () => {
5452
renderApp(["/research"]);
5553

56-
const button = screen.getByRole("button", {
57-
name: /open research content for deep learning for immunogenomics/i
58-
});
59-
60-
expect(screen.queryByText(/HLA, AIRR, and KIR profiling/i)).not.toBeInTheDocument();
61-
await user.click(button);
62-
expect(screen.getByText(/HLA, AIRR, and KIR profiling/i)).toBeVisible();
63-
expect(button).toHaveAttribute("aria-expanded", "true");
54+
expect(screen.getByRole("heading", { name: /deep learning for immunogenomics/i })).toBeVisible();
55+
expect(screen.getByText(/HLA, AIRR, KIR in immunogenomics/i)).toBeVisible();
6456
});
6557

6658
test("opens the mobile menu and exposes the galaxy utility route", async () => {

0 commit comments

Comments
 (0)