import React from 'react'; import { fireEvent, render, screen } from '@testing-library/react'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; // One error fallback everywhere: the same "Try again", a way back to the // inbox outside mail, and each app has a boundary of its own that keeps the // navigation on screen. vi.mock('@/components/layout/navigation-rail', () => ({ NavigationRail: ({ orientation }: { orientation?: string }) =>