test(router): match current affinity control label

This commit is contained in:
Tin Chi Lo 2026-09-15 12:52:06 -07:00
parent 4287bacf25
commit 1016ceede6

View file

@ -105,7 +105,7 @@ describe("EditAutoRouterModal keyword matching", () => {
expect(screen.queryByText("Advanced: Compression")).not.toBeInTheDocument();
expect(screen.queryByText("Model Access Groups")).not.toBeInTheDocument();
await user.click(screen.getByText("Advanced: Affinity"));
await user.click(await screen.findByRole("switch", { name: "Pin a session to one deployment per model group" }));
await user.click(await screen.findByRole("switch", { name: "Pin one model deployment per tier" }));
await user.click(screen.getByRole("button", { name: /save changes/i }));
await waitFor(() => expect(modelPatchUpdateCall).toHaveBeenCalled());
expect(modelPatchUpdateCall).toHaveBeenLastCalledWith(