diff --git a/web/src/components/product/ProductPage.test.jsx b/web/src/components/product/ProductPage.test.jsx index af2531340a..11a89fba2c 100644 --- a/web/src/components/product/ProductPage.test.jsx +++ b/web/src/components/product/ProductPage.test.jsx @@ -180,7 +180,7 @@ describe("when the services are busy", () => { installerRender(); const selectButton = await screen.findByRole("button", { name: "Change product" }); - const registerButton = screen.getByRole("button", { name: "Register" }); + const registerButton = await screen.findByRole("button", { name: "Register" }); expect(selectButton).toHaveAttribute("disabled"); expect(registerButton).toHaveAttribute("disabled");