Test Case Portion 5
This commit is contained in:
parent
97ce500422
commit
930e7a8ab2
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue