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 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'); }