Description
Code
test("Checkout with no data", async ({ page, loginPage, cartReady }) => {
const checkout = new Checkout(page);
await checkout.clickCheckout();
// without filling the data
await checkout.clickContinue();
await expect(
page.locator(".error-message-container.error")
).toBeVisible();
await expect(page.locator("h3[data-test='error']")).toHaveText(
"Error: First Name is required"
);
await page.waitForTimeout(2000);
});