try to make e2e test less flaky

This commit is contained in:
2026-08-08 15:04:56 -04:00
parent 3f7414707a
commit ab46e63bf0
2 changed files with 13 additions and 4 deletions
+1 -3
View File
@@ -77,9 +77,7 @@ test("ingredients are grouped under their categories", async ({ page }) => {
await createMeal(page, "Spaghetti Bolognese", "");
// Add an ingredient in the default "Produce" category.
await page.fill("#ingredient-name", "Tomato");
await page.selectOption("#ingredient-category", { label: "Produce" });
await page.click("#add-ingredient-button");
await addIngredient(page, "Tomato", "", "Produce");
// Add one without a category.
await addIngredient(page, "Penne");