function registerSuccess(\Step\Acceptance\LoginSteps $I, \Page\Registration $registerPage) { $registerPage->register(); $registerPage->registerInvalid('alex', 'sereda', '*****@*****.**', '123456', '123456'); $I->checkExistUser(); $registerPage->logout(); }
function MyAddress(\Step\Acceptance\LoginSteps $I, \Page\MyAccount $MyAccountPage) { $I->login(); $MyAccountPage->accountAddress('alex', 'sereda', '+39063636369', 'Test12', 'Kharkov', '54423', 'Kharkov'); $I->waitAlertWindow(); $MyAccountPage->accountNewAddress('alex', 'sereda', '+39063636369', 'Test12', 'Kharkov', '54423', 'Kharkov'); }
function MyAccountAddress(\Step\Acceptance\LoginSteps $I, \Page\MyAccount $MyAccountPage) { $I->stepsLoginIn(); $MyAccountPage->accountAddress('alex', 'sereda', '+39063636369', 'Dostoevskogo22v', 'Kharkov', '54423', 'Kharkov'); $I->waitForElement('li.success-msg'); $I->comment('Expected result: The address has been saved.'); $I->waitAlertWindow(); $I->comment('Expected result: The address has been deleted.'); $MyAccountPage->accountAddress('alex', 'sereda', '+39063636369', 'Dostoevskogo22v', 'Kharkov', '54423', 'Kharkov'); $I->waitForElement('li.success-msg'); $I->comment('Expected result: The address has been saved.'); }
function clickMenPage(\Page\MainPages $menPage, \Step\Acceptance\LoginSteps $I) { $menPage->men(); $I->headerLinks(); //$I->menLinks(); }