Checkout Sa6b29cad→

1 0 0

Tests (2)

A

Successfull checkout Tfd990884→

Description
Code
  test("Successfull checkout", async ({ page, loginPage, cartReady }) => {
    const checkout = new Checkout(page);

    await checkout.clickCheckout();
    await checkout.completeInfo("Kamran", "Musadirli", "12345");
    await checkout.clickContinue();
    await page.waitForTimeout(2000);

    await expect(page).toHaveURL(
      "https://www.saucedemo.com/checkout-step-two.html"
    );

    await checkout.clickFinish();

    await expect(page.locator(".complete-header")).toHaveText(
      "Thank you for your order!"
    );
  });

M

Successfull checkout Td997e4b9→

Description
### Description
Verify that a user can successfully complete an order

### Preconditions
User is logged in. User is on [https://www.saucedemo.com/checkout-step-one.html](https://www.saucedemo.com/checkout-step-one.html). 


### Steps

| # | Action | Test Data | Expected Result |
|---|---------|------------|----------------|
| 1 | Enter **First Name** | `Kamran` | First Name is entered successfully |
| 2 | Enter **Last Name** | `Musadirli` | Last Name is entered successfully |
| 3 | Enter **Zip Code** | 12345 | Zip/Postal code is entered succesfully |
| 4 | Click “Continue” button | — | User proceeds to the next checkout step |
| 5 | Verify that the item in checkout matches the item added to the cart  | — | Item details match |
| 6 | Click “Finish” button | — | User completes the order |
| 7 | Verify that the “Thank you for your order!” message is displayed  | — | Confirmation message is visible |


![](/attachments/JImlqaEBgz.png)

### Expected Result
User successfully completes the checkout process.
Attachments