Skip to content

Commit 8e2a944

Browse files
author
Sergii Kovalenko
committed
MAGETWO-62975: [FT] Functional test Magento\Customer\Test\TestCase\RegisterCustomerFrontendEntityTest is failed
--add b2b interpretation
1 parent 12019fb commit 8e2a944

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/RegisterCustomerFrontendEntityTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class RegisterCustomerFrontendEntityTest extends Injectable
5757
* @param CustomerAccountCreate $customerAccountCreate
5858
* @param CmsIndex $cmsIndex
5959
* @param LogoutCustomerOnFrontendStep $logoutCustomerOnFrontendStep
60-
* @return void
6160
*/
6261
public function __inject(
6362
CustomerAccountCreate $customerAccountCreate,
@@ -80,7 +79,7 @@ public function test(Customer $customer)
8079
$this->logoutCustomerOnFrontendStep->run();
8180
// Steps
8281
$this->cmsIndex->open();
83-
$this->cmsIndex->getLinksBlock()->openLink('Create an Account');
82+
$this->cmsIndex->getLinksBlock()->openCustomerCreateLink();
8483
$this->customerAccountCreate->getRegisterForm()->registerCustomer($customer);
8584
}
8685

dev/tests/functional/tests/app/Magento/Theme/Test/Block/Links.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ protected function expandCustomerMenu()
5959
$this->_rootElement->find($this->toggleButton)->click();
6060
}
6161

62+
/**
63+
* Open customer registration
64+
*
65+
* @return void
66+
*/
67+
public function openCustomerCreateLink()
68+
{
69+
$this->openLink('Create an Account');
70+
}
71+
6272
/**
6373
* Open link by its title.
6474
*

0 commit comments

Comments
 (0)