// Visibility & State:
await expect(page.getByRole("button", { name: "Submit" })).toBeVisible();
await expect(page.getByRole("button", { name: "Submit" })).toBeEnabled();
await expect(page.getByLabel("Subscribe")).toBeChecked();// Text & Values:
await expect(page.getByTestId("cart-count")).toHaveText("3");
await expect(page).toHaveURL("https://targetqa.com/dashboard");
// Soft assertions (allow test to continue after failure):
await expect.soft(page.getByTestId("subtotal")).toHaveText("$50.00");
await expect.soft(page.getByTestId("tax")).toHaveText("$5.00");