function productPage(Step\Acceptance\LoginSteps $I) { $I->productCart(); $I->comment('Expected result: Go to product card'); $I->checkImgItem(); $I->comment('Expected result: Click on Img and zoom is working'); $I->checkNewItem(); }
function MyAccountOrders(Step\Acceptance\LoginSteps $I, \Page\MyAccountAfterOrders $MyAccountPage) { $I->stepsLoginIn(); $MyAccountPage->ordersDashboard(); $I->comment('Expected result: This product is currently out of stock'); $MyAccountPage->addGiffCardForOrdersRedeem('GIFT-ADFA-12NF0F'); $I->comment('Expected result: GIFT-ADFA-12NF0F - The current balance of this gift code is 0'); $MyAccountPage->addSameGiffCard('GIFT-ADFA-12NF0O'); $I->comment('Expected result: This gift code has already existed in your list'); $MyAccountPage->addGiffCard('GIFT-ADFA-12NF0F'); $I->comment('Expected result: The gift code has been added to your list successfully'); $MyAccountPage->giffCardOfOrders(); $I->comment('Expected result: Gift card was successfully removed'); }
function checkFunctionalShoppingCart(Step\Acceptance\LoginSteps $I, \Page\ShoppingCart $shoppingCart) { $shoppingCart->checkShoppingCart(); $I->comment('Expected result: Links are working'); /* $shoppingCart->checkAddNewItem(); //$I->comment('Expected result: Add to cart a new item'); */ $I->checkCountsForItem(); $I->comment('Expected result: Count is working plus and minus'); $shoppingCart->checkEdit(); $I->comment('Expected result: Page is open "Edit" items'); $shoppingCart->checkEmptyCouponCode(); $I->comment('Expected result: This is a required field.'); $shoppingCart->checkWrongCouponCod('test'); $I->comment('Expected result: Coupon code "test" is not valid.'); /* $shoppingCart->checkCouponCod('HOLIDAY'); $I->comment('Expected result: Coupon code "HOLIDAY" was applied.'); */ $shoppingCart->checkEmptyGiffCard(); $I->comment('Expected result: Please enter your code'); $shoppingCart->checkWrongGiffCard('test'); $I->comment('Expected result: Gift card "test" is invalid.'); /* $shoppingCart->checkGiffCard('GIFT-ADFA-12NF0O'); $I->comment('Expected result: Gift code "GIFT-XXXX-XXXXXX" has been applied successfully.'); $shoppingCart->checkDeleteGiffCard(); $I->comment('Expected result: Your Gift Card information has been removed successfully.'); */ $shoppingCart->removeItem(); $I->comment('Expected result: You have no items in your shopping cart.'); }
function homeFooterSocialLinks(Step\Acceptance\LoginSteps $I, \Page\Home $homePage) { $homePage->homeFooterFacebook(); $I->getSecondOpen(); $I->comment('Expected result: Page is open - Facebook '); $homePage->homeFooterTwiter(); $I->getSecondOpen(); $I->comment('Expected result: Page is open - Twitter '); $homePage->homeFooterPinterest(); $I->getSecondOpen(); $I->comment('Expected result: Page is open - Pinterest '); $homePage->homeFooterInstagram(); $I->getSecondOpen(); $I->comment('Expected result: Page is open - Instargam '); }
function MyAccountBilling(Step\Acceptance\LoginSteps $I, \Page\MyAccount $MyAccountPage) { $I->stepsLoginIn(); $MyAccountPage->accountBilling(); $I->see('PayPal gateway has rejected request.', 'li.error-msg'); $I->comment('Expected result: PayPal gateway has rejected request. '); }
function invalidRepeatPass(Step\Acceptance\LoginSteps $I) { $I->moveBack(); $I->see('Your password reset link has expired.', 'li.error-msg'); $I->comment('Expected result: Your password has been updated'); }
function forgotSuccess(Step\Acceptance\LoginSteps $I, \Page\ForgotPass $forgotPage) { $forgotPage->forgot('*****@*****.**'); $I->comment('Expected result: If there is an account associated with cadence_watch@yahoo.com you will receive an email with a link to reset your password.'); }