Skip to content

Commit 68c8f28

Browse files
fix(tests): scope model combobox query by label to avoid ambiguity with collection datalist
1 parent d1229d8 commit 68c8f28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

__tests__/components/PromptForm.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe("PromptForm - rendering", () => {
6767

6868
it("renders the model select with default value gpt-4o", () => {
6969
renderWithAuth();
70-
const select = screen.getByRole("combobox") as HTMLSelectElement;
70+
const select = screen.getByRole("combobox", { name: /model/i }) as HTMLSelectElement;
7171
expect(select.value).toBe("gpt-4o");
7272
});
7373
});

0 commit comments

Comments
 (0)