test(ui): use the current deployment affinity label

This commit is contained in:
Tin Chi Lo 2026-09-15 11:38:28 -07:00
parent 2da9bbfc0f
commit 914ae9b248

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(