You need to add following line in your code prior to the line containing fill.
await expect(pageFixture.page.locator("//input[@formcontrolname='min_quantum']")).toBeVisible();
It will make sure the element is visible before using fill action.