function MyAccountGiftCard(Step\Acceptance\LoginSteps $I, \Page\MyAccount $MyAccountPage)
 {
     $I->stepsLoginIn();
     $MyAccountPage->accountGiftCard();
     $I->giftCardEmpty();
     $I->getVisibleText('The maximum number of times to enter gift card code is 5!', '.error-msg');
     $I->logOut();
 }
Пример #2
0
 function MyAccountGiftCard(Step\Acceptance\LoginSteps $I, \Page\MyAccount $MyAccountPage)
 {
     $I->login();
     $MyAccountPage->accountGiftCard();
     $MyAccountPage->accountGiftCardIsNot('GIFT-ADFA-12NF0O');
     $I->giftCardEmpty();
     $MyAccountPage->removeGiftCard();
 }