Test Case Portion 5

This commit is contained in:
devansh bawari 2021-04-13 20:00:27 +05:30
parent 97ce500422
commit 930e7a8ab2
1 changed files with 4 additions and 6 deletions

View File

@ -67,14 +67,12 @@ class GuestCheckoutCest
]);
$I->amOnRoute('shop.checkout.cart.index');
$I->see('Shopping Cart', '//div[@class="title"]');
$I->seeInTitle('Shopping Cart');
$I->makeHtmlSnapshot('guestCheckout_' . $example['globalConfig'] . '_' . $product->getAttribute('guest_checkout'));
$I->see($product->name, '//div[@class="item-title"]');
$I->click(
__('shop::app.checkout.cart.proceed-to-checkout'),
'//a[@href="' . route('shop.checkout.onepage.index') . '"]'
);
$I->seeInSource($product->name);
$I->amOnRoute('shop.checkout.onepage.index');
$I->seeCurrentRouteIs($example['expectedRoute']);
$cart = cart()->getCart();
$I->assertTrue(cart()->removeItem($cart->items[0]->id));
}