/** * Tests for the FilamentMapping component's Filament Track Switch (FTS) * handling (#1162). * * The FTS accessory routes any AMS slot to either extruder dynamically. When * present (printer status `fila_switch.installed === true`), the per-extruder * dropdown filter must be suppressed — otherwise the print modal's filament * dropdown is empty since the printer reports info bits 8-11 = 0xE * (uninitialized) for every AMS unit. */ import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'; import { screen, waitFor, cleanup, fireEvent, within } from '@testing-library/react'; import { http, HttpResponse } from 'msw'; import { render } from '../utils'; import { server } from '../mocks/server'; import { FilamentMapping } from '../../components/PrintModal/FilamentMapping'; import type { PrinterStatus } from '../../api/client'; /** * Open the slot picker and hand back its listbox. * * The picker replaced a native `` keeps every * `