diff --git a/src/features/settings/__tests__/dotnetSettings.test.tsx b/src/features/settings/__tests__/dotnetSettings.test.tsx index e9799815c6..a382e45b0d 100644 --- a/src/features/settings/__tests__/dotnetSettings.test.tsx +++ b/src/features/settings/__tests__/dotnetSettings.test.tsx @@ -52,12 +52,12 @@ afterEach(() => { describe(".NET settings page", () => { it("shows the SDK in use, every installed one, and offers each version once", async () => { page({}); - await waitFor(() => expect(combo()).toHaveTextContent("Not pinned")); - expect(screen.getAllByRole("listitem").map((item) => item.textContent)).toEqual([ + expect((await screen.findAllByRole("listitem")).map((item) => item.textContent)).toEqual([ "11.0.100-rc.1.26425.101 · /usr/local/share/dotnet/sdk", "10.0.401 · /usr/local/share/dotnet/sdk", "10.0.401 · /work/app/.dotnet/sdk", ]); + expect(combo()).toHaveTextContent("Not pinned"); expect(alerts()).toEqual([]); fireEvent.click(combo()); expect(await screen.findAllByRole("option")).toHaveLength(2);