Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
Commitda16579unknown_key

fix(test): update nav-user assertion to match redesigned dropdown

fix(test): update nav-user assertion to match redesigned dropdown

The layout nav redesign replaced the single <a class="nav-user"> link
with a dropdown component using class="nav-user-trigger". Update the
layout-user-prop tests to check for the new marker so the suite stays green.

https://claude.ai/code/session_01ACsT2Pc8GRoZwZRF8SK68Y
Claude committed on May 28, 2026Parent: 8d1483c
1 file changed+34da1657933381571c82b409531601495e9fcf3d86
1 changed file+3−4
Modifiedsrc/__tests__/layout-user-prop.test.ts+3−4View fileUnifiedSplit
141141const LOGGED_OUT_NAV_MARKER = `href="/login" class="nav-link"`;
142142
143143function assertAuthedNav(html: string) {
144 // The Layout nav renders `<a href={`/${user.username}`} class="nav-user">`
145 // with the user's display name when `user` is present. If the prop is
146 // missing the literal "Sign in" link shows up instead.
147 expect(html).toContain('class="nav-user"');
144 // The Layout nav renders a user dropdown with class "nav-user-trigger"
145 // when `user` is present. If the prop is missing the "Sign in" link shows.
146 expect(html).toContain('class="nav-user-trigger"');
148147 expect(html).toContain(TEST_USER.displayName);
149148 expect(html).not.toContain(LOGGED_OUT_NAV_MARKER);
150149}
151150