diff --git a/frontend/apps/remark42/app/components/select/select.spec.tsx b/frontend/apps/remark42/app/components/select/select.spec.tsx index 9b5f9f2b01..229c88ae56 100644 --- a/frontend/apps/remark42/app/components/select/select.spec.tsx +++ b/frontend/apps/remark42/app/components/select/select.spec.tsx @@ -21,15 +21,11 @@ describe('); - - const selectedItem = items[0]; - const selectedOption = screen.getAllByRole('option')[0]; + const selectedIndex = 1; + const selectedItem = items[selectedIndex]; - expect(screen.getAllByText(selectedItem.label)).toHaveLength(2); - expect(selectedOption).toBeInTheDocument(); - expect(selectedOption.selected).toBeTruthy(); - expect(selectedOption.textContent).toBe(selectedItem.label); + render(